Add tagedit library
This commit is contained in:
parent
c75739c406
commit
5a9ed59195
2 changed files with 43 additions and 7 deletions
|
@ -141,10 +141,6 @@ MODE1 is enabled and vice-versa."
|
||||||
"Set the `disabled' property for each item in FUNCTIONS to nil."
|
"Set the `disabled' property for each item in FUNCTIONS to nil."
|
||||||
(mapc #'(lambda (f) (put f 'disabled nil)) functions))
|
(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 ()
|
(defun oni:set-python-imenu-function ()
|
||||||
"Set the `imenu-create-index-function' variable.
|
"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
|
(oni:add-hooks 'slime-repl-mode-hook
|
||||||
#'paredit-mode #'set-up-slime-ac)
|
#'paredit-mode #'set-up-slime-ac)
|
||||||
|
|
||||||
(oni:add-hooks 'tagedit-mode-hook
|
;; Use all the cool experimental tagedit features
|
||||||
#'tagedit-add-experimental-features
|
(add-hook 'tagedit-mode-hook 'tagedit-add-experimental-features)
|
||||||
#'tagedit-add-paredit-like-keybindings #'oni:set-keys-for-tagedit)
|
|
||||||
|
;; 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
|
(oni:add-hooks 'texinfo-mode-hook
|
||||||
#'outline-minor-mode)
|
#'outline-minor-mode)
|
||||||
|
|
35
emacs/.emacs.d/site-lisp/oni-tagedit.el
Normal file
35
emacs/.emacs.d/site-lisp/oni-tagedit.el
Normal file
|
@ -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
|
Loading…
Reference in a new issue