Ver código fonte

Added some keybindings

Simon Watson 3 anos atrás
pai
commit
f5d161c06f
1 arquivos alterados com 7 adições e 3 exclusões
  1. 7 3
      emacs/.emacs-all

+ 7 - 3
emacs/.emacs-all

@@ -45,15 +45,13 @@
 (require 'diff-hl)
 ;; Just enable diff-hl per buffer,
 ;; it seems expensive 
-; (global-diff-hl-mode)
+;; (global-diff-hl-mode)
 (add-hook 'magit-pre-refresh-hook 'diff-hl-magit-pre-refresh)
 (add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh)
 (diff-hl-margin-mode t)
 
-
 (require 'dimmer)
 (setq dimmer-fraction 0.4)
-(dimmer-mode t)
 
 ;; always enable ido mode
 (require 'ido)
@@ -120,6 +118,12 @@
 (global-set-key (kbd "<home>") 'beginning-of-line)
 (global-set-key (kbd "<end>") 'end-of-line)
 
+;; Enable diff-hl mode
+(global-set-key (kbd "C-c e") 'diff-hl-mode)
+(global-set-key (kbd "C-c d") 'dimmer-mode)
+(global-set-key (kbd "C-c s") 'sublimity-mode)
+
+
 ;;; erc config
 (setq erc-nick "speskk")