Fixed the problem with ido/untabify defadvice triggering got redefined error
This commit is contained in:
parent
b24bea01bf
commit
925ed507b1
2 changed files with 2 additions and 0 deletions
|
@ -285,6 +285,7 @@ there's a region, all lines that region covers will be duplicated."
|
|||
(interactive)
|
||||
(byte-recompile-directory prelude-dir 0))
|
||||
|
||||
(require 'ido)
|
||||
(defun prelude-sudo-edit (&optional arg)
|
||||
"Edit currently visited file as root.
|
||||
|
||||
|
|
|
@ -298,6 +298,7 @@ The body of the advice is in BODY."
|
|||
(interactive
|
||||
(list (not (region-active-p)))))
|
||||
|
||||
(require 'tabify)
|
||||
(defmacro with-region-or-buffer (func)
|
||||
"When called with no active region, call FUNC on current buffer."
|
||||
`(defadvice ,func (before with-region-or-buffer activate compile)
|
||||
|
|
Loading…
Reference in a new issue