diff options
author | Tom Willemse | 2015-12-18 20:38:07 +0100 |
---|---|---|
committer | Tom Willemse | 2015-12-18 20:38:07 +0100 |
commit | 5a9ed5919515bac0344a03cf66ce9217cd39080d (patch) | |
tree | 2a417ac8c091aaa471d196a7692de8a31beba83f /emacs | |
parent | c75739c4065de8a12fa307fe895bed7ef44417d3 (diff) | |
download | dotfiles-5a9ed5919515bac0344a03cf66ce9217cd39080d.tar.gz dotfiles-5a9ed5919515bac0344a03cf66ce9217cd39080d.zip |
Add tagedit library
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/.emacs.d/init.el | 15 | ||||
-rw-r--r-- | emacs/.emacs.d/site-lisp/oni-tagedit.el | 35 |
2 files changed, 43 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) diff --git a/emacs/.emacs.d/site-lisp/oni-tagedit.el b/emacs/.emacs.d/site-lisp/oni-tagedit.el new file mode 100644 index 0000000..8cede20 --- /dev/null +++ b/emacs/.emacs.d/site-lisp/oni-tagedit.el @@ -0,0 +1,35 @@ +;;; oni-tagedit.el --- Extra commands and functions for tagedit -*- lexical-binding: t; -*- + +;; Copyright (C) 2015 Tom Willemse + +;; Author: Tom Willemse <tom@ryuslash.org> +;; Keywords: + +;; This program is free software; you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with this program. If not, see <http://www.gnu.org/licenses/>. + +;;; Commentary: + +;; Here are some extra commands and functions for tagedit. + +;;; Code: + +(require 'tagedit) + +;;;###autoload +(defun oni:set-keys-for-tagedit () + "Set some keybindings for `tagedit-mode'." + (define-key tagedit-mode-map (kbd "M-k") #'tagedit-kill-attribute)) + +(provide 'oni-tagedit) +;;; oni-tagedit.el ends here |