(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"
*** 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
** 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
(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")
+
+#+END_SRC
+
* Note
** Check if emacs is in terminal of graphic mode