#+begin_src emacs-lisp
(setq ispell-silently-savep t)
#+end_src
+** Open file as root
+#+begin_src emacs-lisp
+ (defun doas-edit (&optional arg)
+ "Edit currently visited file as root.
+
+ With a prefix ARG prompt for a file to visit.
+ Will also prompt for a file to visit if current
+ buffer is not visiting a file.
+
+ Modified from Emacs Redux."
+ (interactive "P")
+ (if (or arg (not buffer-file-name))
+ (find-file (concat "/doas:root@localhost:"
+ (ido-read-file-name "Find file(as root): ")))
+ (find-alternate-file (concat "/doas:root@localhost:" buffer-file-name))))
+
+ (global-set-key (kbd "C-x C-r") #'doas-edit)
+#+end_src
* Keybindings
** Switch windows
#+begin_src emacs-lisp