瀏覽代碼

Fix MR and include hotkeys for theme

Simon Watson 3 年之前
父節點
當前提交
84d7abd830
共有 1 個文件被更改,包括 12 次插入1 次删除
  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"))