Skip to content

Commit

Permalink
tweak(keybindings): use my commands for delete/sudo instead of crux's
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Nov 3, 2023
1 parent 46de381 commit f98c353
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion core/me-keybindings.el
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@
;; ====== Files ======
"f" '(nil :wk "file")
"fS" '(write-file :wk "Save as ...")
"fD" #'+delete-this-file
"fd" #'+delete-this-file
"fD" #'+delete-this-file-and-buffer
"fF" #'+sudo-find-file
"fu" #'+sudo-this-file
"fR" #'+move-this-file
Expand Down
9 changes: 9 additions & 0 deletions core/me-loaddefs.el
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ If PATH is not specified, default to the current buffer's file.
If FORCE-P, delete without confirmation.
(fn &optional PATH FORCE-P)" t)
(autoload '+delete-this-file-and-buffer "../elisp/+io" "\
Kill the current buffer and deletes the file it is visiting.
(fn &optional FILENAME)" t)
(autoload '+delete-file-or-directory "../elisp/+io" "\
Delete FILE-OR-DIRECTORY with `delete-file' or `delete-directory'.
Expand Down Expand Up @@ -681,6 +685,11 @@ Mount eCryptfs' private directory." t)
Unmount eCryptfs' private directory." t)
(register-definition-prefixes "../elisp/ecryptfs" '("ecryptfs-"))


;;; Generated autoloads from ../elisp/magit-pretty-graph.el

(register-definition-prefixes "../elisp/magit-pretty-graph" '("magit-pg"))


;;; Generated autoloads from me-bootstrap.el

Expand Down
2 changes: 0 additions & 2 deletions modules/me-extra.el
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
:init
(+map!
"fo" #'crux-open-with
"fu" #'crux-sudo-edit ; override `+sudo-this-file'
"fD" #'crux-delete-file-and-buffer ; override `+delete-this-file'
"fC" #'crux-copy-file-preserve-attributes
"id" #'crux-insert-date
"bo" #'crux-kill-other-buffers))
Expand Down

0 comments on commit f98c353

Please sign in to comment.