diff options
| author | Pierre Courtieu | 2015-05-19 08:56:54 +0000 |
|---|---|---|
| committer | Pierre Courtieu | 2015-05-19 08:56:54 +0000 |
| commit | 03314b38b76b1db9d8498aca3e18f07a60994c39 (patch) | |
| tree | feeac65be739b1b0f93a11dc840d6d2216267f0b | |
| parent | f0104cf97fae9bee7cc78fe7357cbea01a026f61 (diff) | |
Disable smie parenthesis blink. Too slow sometimes.
| -rw-r--r-- | coq/coq.el | 25 |
1 files changed, 15 insertions, 10 deletions
@@ -112,8 +112,8 @@ Set to t if you want this feature." :group 'coq) (defconst coq-shell-init-cmd - (format "Set Undo %s . " coq-default-undo-limit) - "Command to initialize the Coq Proof Assistant.") + `(,(format "Set Undo %s . " coq-default-undo-limit) "Set Printing Width 75.") + "Command to initialize the Coq Proof Assistant.") (require 'coq-syntax) ;; FIXME: Even if we don't use coq-indent for indentation, we still need it for @@ -775,6 +775,7 @@ Support dot.notation.of.modules." (not (coq-string-starts-with-symbol symb))) symbclean)))) + (defun coq-id-or-notation-at-point () (or (coq-id-at-point) (concat "\"" (coq-notation-at-position (point)) "\""))) @@ -1128,10 +1129,11 @@ A Show command is also issued, so that the goal is redisplayed." (let* ((id (coq-id-or-notation-at-point)) (re (regexp-quote (or id "")))) (when coq-highlight-id-last-regexp - (coq-unhighlight-id-in-goals coq-highlight-id-last-regexp)) - (when id - (coq-highlight-id-in-goals re) - (setq coq-highlight-id-last-regexp re)))) + (coq-unhighlight-id-in-goals coq-highlight-id-last-regexp) + (if (equal id coq-highlight-id-last-regexp) + (setq coq-highlight-id-last-regexp "") + (coq-highlight-id-in-goals re) + (setq coq-highlight-id-last-regexp re))))) (proof-definvisible coq-PrintHint "Print Hint. ") @@ -1378,11 +1380,14 @@ Warning: ;; need to make this hook local. ;; hack-local-variables-hook seems to hack local and dir local vars. (add-hook 'coq-mode-hook - '(lambda () (add-hook 'hack-local-variables-hook - 'coq-load-project-file - nil t))) - + '(lambda () + (add-hook 'hack-local-variables-hook + 'coq-load-project-file + nil t))) +;; smie's parenthesis blinking is too slow, let us have the default one back +(add-hook 'coq-mode-hook + '(lambda () (setq show-paren-data-function 'show-paren--default))) (defun coq-toggle-use-project-file () (interactive) |
