Emacs - Move evil into a separate file
[dotfiles.git] / emacs.d / config.org
index d37dc9c..0493da3 100644 (file)
@@ -1150,7 +1150,7 @@ extend org-mode's easy templates, refer to [[http://coldnew.github.io/coldnew-em
   (set-face-attribute 'variable-pitch nil :font "Source Sans Pro" :height 160)
   (set-face-attribute 'fixed-pitch nil :font "Source Code Pro" :height (face-attribute 'default :height))
 
-  (add-hook 'text-mode-hook 'variable-pitch-mode)
+  ;; (add-hook 'text-mode-hook 'variable-pitch-mode)
 
   ;; Install Ubuntu Mono fonts and apply it in org-table to align Chinese fonts
   (with-eval-after-load "org"
@@ -1179,18 +1179,18 @@ Also correct the face of  =org-meta-line= in =org-table=
 
 *** Org-head face
 #+BEGIN_SRC emacs-lisp :tangle yes :results silent
-  (with-eval-after-load "org"
-    (let* ((base-height (face-attribute 'variable-pitch :height))
-           (base-font-color (face-foreground 'default nil  'default)))
-      (set-face-attribute 'org-document-title nil :weight 'bold :height (+ 60 base-height))
-      (set-face-attribute 'org-level-1 nil :weight 'bold :height (+ 40 base-height))
-      (set-face-attribute 'org-level-2 nil :weight 'bold :height (+ 30 base-height))
-      (set-face-attribute 'org-level-3 nil :weight 'bold :height (+ 20 base-height))
-      (set-face-attribute 'org-level-4 nil :weight 'bold :height (+ 10 base-height))
-      (set-face-attribute 'org-level-5 nil :weight 'bold)
-      (set-face-attribute 'org-level-6 nil :weight 'bold)
-      (set-face-attribute 'org-level-7 nil :weight 'bold)
-      (set-face-attribute 'org-level-8 nil :weight 'bold)))
+  ;; (with-eval-after-load "org"
+  ;;   (let* ((base-height (face-attribute 'variable-pitch :height))
+  ;;          (base-font-color (face-foreground 'default nil  'default)))
+  ;;     (set-face-attribute 'org-document-title nil :weight 'bold :height (+ 60 base-height))
+  ;;     (set-face-attribute 'org-level-1 nil :weight 'bold :height (+ 40 base-height))
+  ;;     (set-face-attribute 'org-level-2 nil :weight 'bold :height (+ 30 base-height))
+  ;;     (set-face-attribute 'org-level-3 nil :weight 'bold :height (+ 20 base-height))
+  ;;     (set-face-attribute 'org-level-4 nil :weight 'bold :height (+ 10 base-height))
+  ;;     (set-face-attribute 'org-level-5 nil :weight 'bold)
+  ;;     (set-face-attribute 'org-level-6 nil :weight 'bold)
+  ;;     (set-face-attribute 'org-level-7 nil :weight 'bold)
+  ;;     (set-face-attribute 'org-level-8 nil :weight 'bold)))
 #+END_SRC
 
 ** Org Blog
@@ -1482,10 +1482,10 @@ Type =o= to go to the link
 ** Which key
 [[https://github.com/justbur/emacs-which-key][which-key]] show the key bindings 
 #+BEGIN_SRC emacs-lisp :tangle yes :results silent
-  (use-package which-key
-    :ensure t
-    :config
-    (which-key-mode))
+  ;; (use-package which-key
+  ;;   :ensure t
+  ;;   :config
+  ;;   (which-key-mode))
 #+END_SRC
 
 ** View only for some directory
@@ -2278,7 +2278,8 @@ irony-company
   (use-package company-c-headers
     :ensure t
     :config
-    (add-to-list 'company-c-headers-path-system "/usr/include/c++/4.2.1/"))
+    (add-to-list 'company-c-headers-path-system "/usr/include/c++/4.2.1/")
+    (add-to-list 'company-c-headers-path-system "/usr/local/include/"))
 
   ;; (with-eval-after-load 'company
   ;;   (add-to-list 'company-backends 'company-irony)
@@ -2329,11 +2330,11 @@ irony-company
 
 *** google C style
 #+BEGIN_SRC emacs-lisp :tangle yes :results silent
-  (use-package google-c-style
-    :ensure t
-    :config
-    (add-hook 'c-mode-hook 'google-set-c-style)
-    (add-hook 'c++-mode-hook 'google-set-c-style))
+  ;; (use-package google-c-style
+  ;;   :ensure t
+  ;;   :config
+  ;;   (add-hook 'c-mode-hook 'google-set-c-style)
+  ;;   (add-hook 'c++-mode-hook 'google-set-c-style))
 #+END_SRC
 
 *** Compile and Run the C file
@@ -3520,6 +3521,12 @@ Refer [[https://github.com/fnwiya/dotfiles/blob/c9ca79f1b22c919d9f4c3a0f944ba828
     (define-key perspeen-mode-map (kbd "s-t") 'perspeen-tab-create-tab)
     (define-key perspeen-mode-map (kbd "s-t") 'perspeen-tab-create-tab))
 #+END_SRC
+* Evil Mode
+#+BEGIN_SRC emacs-lisp :tangle yes :results silent
+  (org-babel-load-file "~/.emacs.d/emacs-evil.org")
+  ;; (require 'init-evil-mode)
+#+END_SRC
+
 
 * Note
 ** Check if emacs is in terminal of graphic mode