aboutsummaryrefslogtreecommitdiff
path: root/emacs/.emacs.d/init/ycp-editing.el
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2023-06-26 16:26:51 +1000
committerYuchen Pei <id@ypei.org>2023-06-26 16:29:08 +1000
commita60e3f385317d4f35d1ab7a853ede6640b4fccc5 (patch)
treee53d7d34c9816860f020396151c1243edbb982d7 /emacs/.emacs.d/init/ycp-editing.el
parent02dd867703e71304983bdc27ab92a20b23f0edf0 (diff)
Some small fixes and changes
* emacs/.emacs.d/init/ycp-editing.el: fix a require * emacs/.emacs.d/init/ycp-prog.el: fix sql require * emacs/.emacs.d/init/ycp-system.el: remove double removal of tramp from file-name-handler-alist * emacs/.emacs.d/init/ycp-vc.el: add a post commit hook to revert project buffers * emacs/.emacs.d/lisp/my/my-mariadb.el: fix sql require * emacs/.emacs.d/lisp/my/my-project.el: add a command to revert project buffers
Diffstat (limited to 'emacs/.emacs.d/init/ycp-editing.el')
-rw-r--r--emacs/.emacs.d/init/ycp-editing.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/emacs/.emacs.d/init/ycp-editing.el b/emacs/.emacs.d/init/ycp-editing.el
index 4bdeb32..5ed3eca 100644
--- a/emacs/.emacs.d/init/ycp-editing.el
+++ b/emacs/.emacs.d/init/ycp-editing.el
@@ -72,6 +72,7 @@
"<C-M-backspace>" #'backward-kill-sexp
)
(electric-pair-mode)
+ (my-add-hooks #'my-non-special-modes-setup '(text-mode-hook prog-mode-hook))
)
(setq viper-mode nil)
@@ -132,8 +133,6 @@
(add-hook 'text-mode-hook #'turn-on-auto-fill)
-(my-add-hooks #'my-non-special-modes-setup '(text-mode-hook prog-mode-hook))
-
(add-to-list
'auto-mode-alist
'("\\(README\\|CHANGELOG\\|COPYING\\|LICENSE\\)\\'" . text-mode))