emacs: add bind to edit the user's init file
This commit is contained in:
parent
6d98acb98d
commit
b8a7cd653d
1 changed files with 7 additions and 0 deletions
|
@ -32,6 +32,13 @@
|
|||
(indent-region start end column))
|
||||
(global-set-key (kbd "C-c C-r i") 'reindent-buffer)
|
||||
|
||||
(defun edit-init-file ()
|
||||
"Switch to a buffer visiting your user's init file.
|
||||
One will be created if none exist."
|
||||
(interactive)
|
||||
(find-file user-init-file))
|
||||
(global-set-key (kbd "C-c e i") 'edit-init-file)
|
||||
|
||||
;; some packages
|
||||
(package-install 'nerd-icons)
|
||||
(package-install 'sudo-edit)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue