Difference between revisions of "Bookmarks"

From WikEmacs
Jump to navigation Jump to search
(Revert to last good version)
(http://www.googletest.com)
Line 1: Line 1:
{{Package
+
Editing Bookmarks - WikEmacs
|name=recentf
 
|description=helps opening a file that is recently visited
 
|source=http://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/bookmark.el
 
|maintainer=[[Karl Fogel]] & [[FSF]]
 
|in_emacs=yes
 
|Development status=active
 
}}
 
 
 
Bookmarks are somewhat like registers in that they record positions you can jump to. Unlike registers, they have long names, and they persist automatically from one Emacs session to the next. The prototypical use of bookmarks is to record “where you were reading” in various files.
 
 
 
== Usage ==
 
 
 
*C-x r m <RET> Set the bookmark for the visited file, at point.
 
*C-x r m bookmark <RET> Set the bookmark named bookmark at point (bookmark-set).
 
*C-x r b bookmark <RET> Jump to the bookmark named bookmark (bookmark-jump).
 
*C-x r l List all bookmarks (list-bookmarks).
 
*M-x bookmark-save Save all the current bookmark values in the default bookmark file.
 
 
 
== Customizations ==
 
=== Changing the default bookmarks-file ===
 
By default, bookmarks are saved to the file {{Filename|.emacs.bmk}}, outside of your {{Dirname|~/.emacs.d}} directory. To change this to another file, set the variable {{Variable|bookmark-default-file}} to what you like:
 
<syntaxhighlight lang="lisp">
 
(setq bookmark-default-file "~/.emacs.d/bookmarks")
 
</syntaxhighlight>
 
 
 
[[Category:Utilities]]
 
[[Category:Bookmarks]]
 
[[Category:Built-in Package]]
 
[[ Category:File Navigation]]
 

Revision as of 22:32, 25 December 2013

Editing Bookmarks - WikEmacs