mirror of
https://github.com/librephoenix/nixos-config
synced 2025-04-20 09:14:34 +05:30
Basic sudo-edit configuration
This commit is contained in:
parent
7bcd2326c4
commit
4db7ebb320
|
@ -1280,6 +1280,17 @@ https://github.com/magit/magit/issues/460 (@cpitclaudel)."
|
|||
:desc "Projectile grep"
|
||||
"/" #'projectile-grep)
|
||||
|
||||
;;;-- projectile wrapper commands ;;;--
|
||||
(require 'sudo-edit)
|
||||
(setq sudo-edit-local-method "doas")
|
||||
|
||||
(map! :leader
|
||||
:desc "Open current file as root"
|
||||
"f U" #'sudo-edit-current-file)
|
||||
(map! :leader
|
||||
:desc "Find a file and open as root"
|
||||
"f u" #'sudo-edit-find-file)
|
||||
|
||||
;;;-- LSP stuff ;;;--
|
||||
(use-package lsp-mode
|
||||
:ensure t)
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
- [[#eaf][EAF]]
|
||||
- [[#direnv][Direnv]]
|
||||
- [[#projectile][Projectile]]
|
||||
- [[#sudo-edit][sudo-edit]]
|
||||
- [[#lsp][LSP]]
|
||||
- [[#terminal][Terminal]]
|
||||
- [[#elfeed][Elfeed]]
|
||||
|
@ -1539,6 +1540,20 @@ EAF doesn't work on Wayland :(
|
|||
:desc "Projectile grep"
|
||||
"/" #'projectile-grep)
|
||||
#+END_SRC
|
||||
** sudo-edit
|
||||
#+BEGIN_SRC emacs-lisp :tangle config.el
|
||||
;;;-- projectile wrapper commands ;;;--
|
||||
(require 'sudo-edit)
|
||||
(setq sudo-edit-local-method "doas")
|
||||
|
||||
(map! :leader
|
||||
:desc "Open current file as root"
|
||||
"f U" #'sudo-edit-current-file)
|
||||
(map! :leader
|
||||
:desc "Find a file and open as root"
|
||||
"f u" #'sudo-edit-find-file)
|
||||
|
||||
#+END_SRC
|
||||
** LSP
|
||||
#+BEGIN_SRC emacs-lisp :tangle config.el
|
||||
;;;-- LSP stuff ;;;--
|
||||
|
|
Loading…
Reference in a new issue