Explorar o código

Added some keybindings

Simon Watson %!s(int64=3) %!d(string=hai) anos
pai
achega
f5d161c06f
Modificáronse 1 ficheiros con 7 adicións e 3 borrados
  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")