bookmarks







Emacs has a very useful system for bookmarks – shortcuts to often-used
files. It's also one of those features I only really started using after years
of emacs – there seem to be many of such obvious features…



Bookmarks are especially handy if you have long file names, or for examples
the special file names for editing root-owned files discussed here before.



To start using bookmarks effectively, there are only a few important key
bindings to memorize: C-x r m ('make') will create a new bookmark,
defaulting to the current file. Then, you can jump to an existing bookmark
with C-x r b ('bookmark') Finally, you can see the list of your bookmarks
with C-x r l ('list').



There are a few customizations you can put in your .emacs:




(setq 
bookmark-default-file "~/.emacs.d/bookmarks" ;; keep my ~/ clean
bookmark-save-flag 1) ;; autosave each change)






No comments:

Post a Comment

Followers

Popular Posts