其他分享
首页 > 其他分享> > emacs配置

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'((?\" . ?\")(?\{ . ?\})(?\' . ?\')))

 

标签:set,配置,global,kbd,emacs,setq,key,mode
来源: https://www.cnblogs.com/huangchenyan/p/15023632.html