Sfoglia il codice sorgente

Fix MR and include hotkeys for theme

Simon Watson 3 anni fa
parent
commit
84d7abd830
1 ha cambiato i file con 12 aggiunte e 1 eliminazioni
  1. 12 1
      emacs/.emacs-all

+ 12 - 1
emacs/.emacs-all

@@ -91,9 +91,10 @@
 (require 'markdown-mode)
 
 (require 'powerline)
-(powerline-default-theme)
+;;(powerline-default-theme)
 ;; Better powerline support for evil mode
 (require 'powerline-evil)
+(powerline-evil-vim-theme)
 
 (require 'neotree)
 (global-set-key [f8] 'neotree-toggle)
@@ -134,6 +135,14 @@
   (interactive)
   (load-file (file-truename "~/.emacs")))
 
+(defun sol-dk ()
+  (interactive)
+  (load-theme 'solarized-dark))
+
+(defun sol-l ()
+  (interactive)
+  (load-theme 'solarized-light))
+
 ;; Keybinds/macros
 (global-set-key (kbd "C-c e") 'diff-hl-mode)
 (global-set-key (kbd "C-c d") 'dimmer-mode)
@@ -142,6 +151,8 @@
 (global-set-key (kbd "C-c r") 'reload-dot-emacs)
 (global-set-key (kbd "C-c l") 'display-line-numbers-mode)
 (global-set-key (kbd "C-c w") 'windresize)
+(global-set-key (kbd "C-c t") 'sol-dk)
+(global-set-key (kbd "C-c g") 'sol-l)
 
 (fset 'date-to-point
    (kmacro-lambda-form [?\C-u ?\M-! ?d ?a ?t ?e return] 0 "%d"))