1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

EmacsのBookmarkをZshで使用する

Posted at

bm-e-z

目的

emacsのブックマークも便利、zshでもブックマークも便利。

しかし、どちらも設定するのは面倒なので

プラグインを作成した。

zshのブックマークプラグインとして、

cd-bookmarkが必要です。

The original script is licensed under the MIT License.

CAUTION

cd-bookmarkの保存ファイルはbm-e-zによって上書きされるので使用できなくなります。

How to install

  1. まずは cd-bookmark (see, https://github.com/mollifier/cd-bookmark.git)をインストールします。

  2. bm-e-zをパスの通ったところに置きます。

  3. もし必要なら_bm-e-zもパスの通ったところに置きます。

    $ ls .zsh/functions/
    bm-e-z _bm-e-z cd-bookmark/

  4. .zshrcに以下のコードを追加します。

    autoload -Uz bm-e-z

  5. cd-bookmarkとemacsのブックマークファイルを指定します。直接bm-e-zを編集してください。

  6. 必要ならaliasを設定してください。

    $ 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


Usage

  • カレントディレクトリをEmacsのブックマークに登録する

      $ bm-e-z -a
    
  • Emacsのブックマークを読み込み

      $ bm-e-z -u
    
  • ディレクトリ移動

      $ bm-e-z [TAB, select directory]
    
  • ブックマークリスト表示(同時にupdateする)

      $ bm-e-z -l
    
  • ヘルプ表示

      $ bm-e-z -h
    
  • もしブックマークファイルを編集したい場合はEmacsのブックマークを編集してください。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?