From beb176bfe835e7addfd1302a8c342af40114e36f Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Sat, 28 Oct 2023 21:46:28 +1100 Subject: [emacs] Some tweaks - small fixes - which func headline should apply to js mode too - magit-diff mode no truncate lines - w3m keybindings --- emacs/.emacs.d/init/ycp-prog.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'emacs/.emacs.d/init/ycp-prog.el') 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 -- cgit v1.2.3