emacs配置

(global-set-key (kbd "C-a") mark-whole-buffer)
;;全选(Like Windows)
(global-set-key (kbd "RET") newline-and-indent)
(global-set-key (kbd "C-s") save-buffer)
(global-set-key (kbd "C-z") undo)
(global-set-key (kbd "C-l") move-beginning-of-line)
;;换行时自动缩进
(cua-mode t)
;;Windows的剪切复制粘贴键
(show-paren-mode t)
(global-linum-mode t)
;;括号匹配,显示行号
(setq kill-ring-max 200)
;;撤销的缓存开大点
(setq-default cursor-type bar)
;;把光标变成条
(setq default-tab-width 4)
(setq c-default-style "awk")
(set-background-color "gray15")
(set-foreground-color "gray")
;;背景颜色(白的太亮了)前景颜色也要跟着改
(electric-pair-mode 1)
(setq electric-pair-pairs
      (
        (?\" . ?\")  ;; 添加双引号补齐
        (?\{ . ?\})  ;; 添加大括号补齐
        (?\ . ?\‘))) ;; 添加单引号补齐
(global-set-key (kbd "C-a") mark-whole-buffer)
(global-set-key (kbd "RET") newline-and-indent)
(global-set-key (kbd "C-s") save-buffer)
(global-set-key (kbd "C-z") undo)
(global-set-key (kbd "C-l") move-beginning-of-line)
(cua-mode t)
(show-paren-mode t)
(global-linum-mode t)
(setq kill-ring-max 200)
(setq-default cursor-type bar)
(setq default-tab-width 4)
(setq c-default-style "awk")
(set-background-color "gray15")
(set-foreground-color "gray")
(electric-pair-mode 1)
(setq electric-pair-pairs((?\" . ?\")(?\{ . ?\})(?\‘ . ?\‘)))

 

emacs配置

上一篇:Photoshop 美女照片加上漂亮的服饰


下一篇:虚拟机如何设置静态ip