#bm-e-z
zsh plugin to share the emacs bookmarks with zsh bookmark.
zsh bookmark is provied by cd-bookmark.
The original script is licensed under the MIT License.
cd-bookmark can not use, because cd-bookmark file is initialized by bm-e-z.
-
install cd-bookmark (see, https://github.com/mollifier/cd-bookmark.git)
-
put bm-e-z file in your $fpath
-
if you need, _bm-e-z file also put in $fpath
$ ls .zsh/functions/ bm-e-z _bm-e-z cd-bookmark/
-
add this line to your .zshrc:
autoload -Uz bm-e-z
-
if need, edit bm-e-z file to configure both emacs bookmark file and cd-bookmark file path
-
You can set alias to this function.
$ alias bm='bm-e-z'
default setting
em='/Applications/Emacs24.app/Contents/MacOS/bin/emacsclient'
your bookmark files select
EMACS_BOOKMARK=~/.emacs.d/bookmarks
EMACS_BOOKMARK=~/.emacs.bmk
CDBOOKMARK=~/.cdbookmark
-
$ bm-e-z -a
-
$ bm-e-z -u
-
$ bm-e-z [TAB, select directory]
-
$ bm-e-z -l
-
$ bm-e-z -h
-
edit Emacs bookmark, do not edit cd-bookmark file(default file is ~/.cdbookmark)