mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(enable-command, disable-command): Use user-init-file.
This commit is contained in:
parent
a4c5c70594
commit
bb79850eb4
1 changed files with 4 additions and 2 deletions
|
|
@ -90,7 +90,8 @@ to future sessions."
|
|||
(interactive "CEnable command: ")
|
||||
(put command 'disabled nil)
|
||||
(save-excursion
|
||||
(set-buffer (find-file-noselect (substitute-in-file-name "~/.emacs")))
|
||||
(set-buffer (find-file-noselect
|
||||
(substitute-in-file-name user-init-file)))
|
||||
(goto-char (point-min))
|
||||
(if (search-forward (concat "(put '" (symbol-name command) " ") nil t)
|
||||
(delete-region
|
||||
|
|
@ -109,7 +110,8 @@ to future sessions."
|
|||
(interactive "CDisable command: ")
|
||||
(put command 'disabled t)
|
||||
(save-excursion
|
||||
(set-buffer (find-file-noselect (substitute-in-file-name "~/.emacs")))
|
||||
(set-buffer (find-file-noselect
|
||||
(substitute-in-file-name user-init-file)))
|
||||
(goto-char (point-min))
|
||||
(if (search-forward (concat "(put '" (symbol-name command) " ") nil t)
|
||||
(delete-region
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue