Move init-file finding to a named function for better hotkey hints
This commit is contained in:
parent
dc833f1f01
commit
e99c4e31ed
1 changed files with 6 additions and 1 deletions
|
|
@ -6,10 +6,15 @@
|
|||
(zerop (call-process "git" nil nil nil
|
||||
"-C" dirname "ls-files" "--error-unmatch" filename))))
|
||||
|
||||
(defun find-init-file ()
|
||||
"Find the user's init file"
|
||||
(interactive)
|
||||
(find-file user-init-file))
|
||||
|
||||
(use-package emacs
|
||||
:ensure nil
|
||||
:bind (("C-z" . nil)
|
||||
("C-z i" . (lambda () (interactive) (find-file user-init-file)))
|
||||
("C-z i" . find-init-file)
|
||||
("C-z f" . ffap))
|
||||
:hook ((after-save . executable-make-buffer-file-executable-if-script-p)
|
||||
(xref-after-update . outline-minor-mode))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue