4 ms·
I’m all for Emacs tips and tricks, but this just seems unnecessary. Using find-file (C-x C-f) along with tab completion to open your .bashrc or whatever is lite
by b1476 6y ago
I’m all for Emacs tips and tricks, but this just seems unnecessary. Using find-file (C-x C-f) along with tab completion to open your .bashrc or whatever is literally several key strokes. Does anyone really edit their shell config that often to warrant binding it to a key to shave off several milliseconds?
- karlicoss 6y agoOr, alternatively, builtin recentf [0] or bookmarks [1] features [0] https://www.emacswiki.org/emacs/RecentFiles https://www.emacswiki.org/emacs/RecentFiles [1] https://www.gnu.org/software/emacs/manual/html_node/emacs/Bookmarks.html https://www.gnu.org/software/emacs/manual/html_node/emacs/Bo...
- clwk 6y agoThank you.
- reedlaw 6y agoI use key-chord to bind xc (both keys pressed at the same time) to my emacs config file: (key-chord-define-global "xc" (lambda () (interactive) (find-file "~/.emacs.d/reed.org")))
- m463 6y agothis is really cool. I tried it, but apparently I need to find key-chord EDIT: https://www.emacswiki.org/emacs/download/key-chord.el https://www.emacswiki.org/emacs/download/key-chord.el Thank you for this. Makes me think those folks with keyboards that have less than say 87 keys might actually have a chance.
- dmortin 6y agoYeah, it's not really worth it. Your home directory should be indexed anyway (along with other interesting directories), so you should be able to simply quickly switch to any file in the index, regardless if it's open or not, using your favorite solution for this (Helm, etc.) This makes bookmarking files pretty pointless, since all your interesting files are instantly available anytime with completion regardless of the current directory.
- PuercoPop 6y agoAlso if you want a menu of places to go Emacs has bookmarks for that.
- mturmon 6y agoYep. The problem I really want to solve is, go to the shell init file where $LESS or $MANPATH or whatever is defined.