Function: projectile-bookmark-set
projectile-bookmark-set is an autoloaded, interactive and
byte-compiled function defined in projectile.el.
Signature
(projectile-bookmark-set NAME)
Documentation
Set a bookmark named NAME at point, scoped to the current project.
The bookmark is a regular Emacs bookmark - it lands in bookmark-alist,
shows up in list-bookmarks and is persisted by bookmark.el itself.
The only Projectile touch is the suggested NAME: the name bookmark-set
would suggest, prefixed with the project's name (e.g. "projectile:
projectile.el"), so the project's bookmarks are easy to spot in the
global list. You're free to edit the name - a bookmark on a file inside
the project is recognised as the project's even without the prefix (see
projectile-bookmark-scope).
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
;;;###autoload
(defun projectile-bookmark-set (name)
"Set a bookmark named NAME at point, scoped to the current project.
The bookmark is a regular Emacs bookmark - it lands in `bookmark-alist',
shows up in `list-bookmarks' and is persisted by `bookmark.el' itself.
The only Projectile touch is the suggested NAME: the name `bookmark-set'
would suggest, prefixed with the project's name (e.g. \"projectile:
projectile.el\"), so the project's bookmarks are easy to spot in the
global list. You're free to edit the name - a bookmark on a file inside
the project is recognised as the project's even without the prefix (see
`projectile-bookmark-scope')."
(interactive
(let ((default (projectile-bookmark--default-name (projectile-acquire-root))))
(list (read-string "Set bookmark: " default 'bookmark-history default))))
(bookmark-set name))