diff options
Diffstat (limited to 'emacs/.emacs.d/init.el')
-rw-r--r-- | emacs/.emacs.d/init.el | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index bf1088c..1c84fb7 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -141,10 +141,6 @@ MODE1 is enabled and vice-versa." "Set the `disabled' property for each item in FUNCTIONS to nil." (mapc #'(lambda (f) (put f 'disabled nil)) functions)) -(defun oni:set-keys-for-tagedit () - "Set some keybindings for `tagedit-mode'." - (local-set-key (kbd "M-k") #'tagedit-kill-attribute)) - (defun oni:set-python-imenu-function () "Set the `imenu-create-index-function' variable. @@ -782,9 +778,14 @@ If no direction is given, don't split." (oni:add-hooks 'slime-repl-mode-hook #'paredit-mode #'set-up-slime-ac) -(oni:add-hooks 'tagedit-mode-hook - #'tagedit-add-experimental-features - #'tagedit-add-paredit-like-keybindings #'oni:set-keys-for-tagedit) +;; Use all the cool experimental tagedit features +(add-hook 'tagedit-mode-hook 'tagedit-add-experimental-features) + +;; Make tagedit behave somewhat like tagedit. +(add-hook 'tagedit-mode-hook 'tagedit-add-paredit-like-keybindings) + +;; Bind tagedit-specific keys +(add-hook 'tagedit-mode-hook 'oni:set-keys-for-tagedit) (oni:add-hooks 'texinfo-mode-hook #'outline-minor-mode) |