init.el
changeset 111 025f0680d73a
parent 110 7a84acce27ec
child 112 c4c346aa93ab
equal deleted inserted replaced
110:7a84acce27ec 111:025f0680d73a
   138 (global-set-key (kbd "C-x 5 b") 'consult-buffer-other-frame)
   138 (global-set-key (kbd "C-x 5 b") 'consult-buffer-other-frame)
   139 (global-set-key (kbd "M-y") 'consult-yank-pop)        ; enhanced yank-pop
   139 (global-set-key (kbd "M-y") 'consult-yank-pop)        ; enhanced yank-pop
   140 
   140 
   141 
   141 
   142 ;;; magit
   142 ;;; magit
   143 (magit-todos-mode t)                                      ; show TODOs in magit status
   143 (with-eval-after-load 'magit-todos
       
   144   (magit-todos-mode t))                                   ; show TODOs in magit status
   144 
   145 
   145 
   146 
   146 ;;; emacs-lisp-mode
   147 ;;; emacs-lisp-mode
   147 (add-hook 'emacs-lisp-mode-hook 'enable-paredit-mode)
   148 (add-hook 'emacs-lisp-mode-hook 'enable-paredit-mode)
   148 
   149 
   196 (add-hook 'markdown-mode-hook 'flyspell-mode)
   197 (add-hook 'markdown-mode-hook 'flyspell-mode)
   197 (setq-default markdown-command "pandoc -f gfm")
   198 (setq-default markdown-command "pandoc -f gfm")
   198 
   199 
   199 
   200 
   200 ;;; treesit-auto (automatically use tree-sitter modes and install grammars)
   201 ;;; treesit-auto (automatically use tree-sitter modes and install grammars)
   201 (global-treesit-auto-mode)
   202 (with-eval-after-load 'treesit-auto
       
   203   (global-treesit-auto-mode))
   202 
   204 
   203 
   205 
   204 ;;; html-mode
   206 ;;; html-mode
   205 (add-to-list 'auto-mode-alist '("\\.tpl\\'" . html-mode))
   207 (add-to-list 'auto-mode-alist '("\\.tpl\\'" . html-mode))
   206 (add-hook 'html-mode-hook 'emmet-mode)
   208 (add-hook 'html-mode-hook 'emmet-mode)