13
12

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 の Commands History を再起動後も使用する

Last updated at Posted at 2012-12-26

以下を .emacs に記述することで M-x のコマンド履歴を永続的に残すことができる。anything なんかを使っていると、Emacs Commands History が Emacs を再起動しても残るためちょっと便利。

(setq desktop-globals-to-save '(extended-command-history))
(setq desktop-files-not-to-save "")
(desktop-save-mode 1)

desktop-save-mode というものが Emacs で標準に付いているのだが、標準だと Commands History 以外の情報まで永続的に残してしまうので、上2行で他の情報を保存しないようにしている。desktop-save-mode ではバッファなども保存可能なので、詳しく知りたい人は https://www.emacswiki.org/emacs/Desktop を読んでみるといいだろう。

13
12
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
13
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?