Fix two bugs
First, my eshell command on a file now works ... because it is now interactive. Sheesh. And the `,` key works more reliably as a major mode key hierarchy.
This commit is contained in:
parent
55e2d95a77
commit
c7ed93b3ae
2 changed files with 4 additions and 2 deletions
|
@ -552,7 +552,9 @@ I'm not trying an experiment where specially-placed function keys on my fancy er
|
|||
:states '(normal visual motion)
|
||||
:prefix ","
|
||||
:global-prefix "<f17>"
|
||||
:non-normal-prefix "S-SPC"))
|
||||
:non-normal-prefix "S-SPC")
|
||||
|
||||
(general-nmap "SPC m" (general-simulate-key "," :which-key "major mode")))
|
||||
#+end_src
|
||||
*** Relabel the G Keys
|
||||
Can’t remember all the shortcuts on the ~g~ key, and =which-key= displays the entire function, so let’s /re-add/ those keybindings, but with labels. The ~g~ is extemely convenient, yet I realize that I will never use some of the default keybindings (like ~g m~ to go to the middle of the line? Too imprecise). So I am also going to delete some of them.
|
||||
|
|
|
@ -1516,7 +1516,7 @@ Sometimes you need to change something about the current file you are editing...
|
|||
|
||||
Will rename the current file to now have a .txt extension.
|
||||
See `eshell-display-modifier-help' for details on that."
|
||||
|
||||
(interactive "sExecute command on File Buffer: ")
|
||||
(let* ((file-name (buffer-file-name))
|
||||
(full-cmd (cond ((string-match (rx "$$") cmd)
|
||||
(replace-regexp-in-string (rx "$$") file-name cmd))
|
||||
|
|
Loading…
Reference in a new issue