diff options
author | Yuchen Pei <id@ypei.org> | 2023-10-28 21:46:28 +1100 |
---|---|---|
committer | Yuchen Pei <id@ypei.org> | 2023-10-28 21:46:28 +1100 |
commit | beb176bfe835e7addfd1302a8c342af40114e36f (patch) | |
tree | 551acaa795f1b77c278e46056fc7ee8b7fb6fb7b /emacs/.emacs.d/init/ycp-prog.el | |
parent | c846b2cea042ac3666d340305f46325cde68d674 (diff) |
[emacs] Some tweaks
- small fixes
- which func headline should apply to js mode too
- magit-diff mode no truncate lines
- w3m keybindings
Diffstat (limited to 'emacs/.emacs.d/init/ycp-prog.el')
-rw-r--r-- | emacs/.emacs.d/init/ycp-prog.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/emacs/.emacs.d/init/ycp-prog.el b/emacs/.emacs.d/init/ycp-prog.el index 222e912..054b035 100644 --- a/emacs/.emacs.d/init/ycp-prog.el +++ b/emacs/.emacs.d/init/ycp-prog.el @@ -521,12 +521,13 @@ (:delay 5) (setq which-func-modes '(org-mode c-mode c++-mode bison-mode shell-script-mode emacs-lisp-mode - sql-mode json-mode)) + sql-mode json-mode js-mode)) (which-function-mode) (add-hook 'org-mode-hook 'my-set-header-line-to-which-func) (add-hook 'c-mode-hook 'my-set-header-line-to-which-func) (add-hook 'emacs-lisp-mode-hook 'my-set-header-line-to-which-func) (add-hook 'c++-mode-hook 'my-set-header-line-to-which-func) + (add-hook 'js-mode-hook 'my-set-header-line-to-which-func) ) ;;; nxml |