VOOZH about

URL: https://qiita.com/OKU_K/items/c578b4b34e74f4c762f3

⇱ Proof Generalのholes-modeを無効化 #Emacs - Qiita


👁 Image
3

Go to list of users who liked

2

Share on X(Twitter)

Share on Facebook

Add to Hatena Bookmark

More than 5 years have passed since last update.

Proof Generalのholes-modeを無効化

3
Last updated at Posted at 2013-10-16

Proof GeneralでCoqファイルを開くと、holes-modeというマイナーモードが立ち上がります。
個人的にはC-c C-jを、カーソルの位置まで証明を進める (proof-goto-point) にバインドしたいのですが、holes-modeのバインドに消されて厄介なので、アドバイスを使ってholes-modeを無効にしてみました。

以下のコードを.emacsに追加するればOKです。

.emacs
(defadvice coq-mode-config (after deactivate-holes-mode () activate)
 "Deactivate holes-mode when coq-mode is activated."
 (progn (holes-mode 0))
)

なお、C-c C-jを (proof-goto-point) にバインドするコードは、例えば以下のような感じです。

.emacs
(add-hook 'proof-mode-hook
 '(lambda ()
 (define-key proof-mode-map (kbd "C-c C-j") 'proof-goto-point)))
3

Go to list of users who liked

2
0

Go to list of comments

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
3

Go to list of users who liked

2