Skip to content

Commit

Permalink
Add -cache-period handling to Emacs plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
3Rafal committed Nov 8, 2023
1 parent 53d51b1 commit 8a2b989
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions emacs/merlin.el
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ a new window or not."
"If non-nil, use this file for the log file (should be an absolute path)."
:group 'merlin :type 'file)

(defcustom merlin-cache-period nil
"If non-nil, use this value for cache period (measured in minutes)."
:group 'merlin :type 'natnum)

(defcustom merlin-arrow-keys-type-enclosing t
"If non-nil, after a type enclosing, C-up and C-down are used
to go up and down the AST. In addition, C-w copies the type to the
Expand Down Expand Up @@ -550,6 +554,8 @@ argument (lookup appropriate binary, setup logging, pass global settings)"
(cons "-flags" merlin-buffer-flags))
(when filename
(cons "-filename" filename))
(when merlin-cache-period
(cons "-cache-period" (number-to-string merlin-cache-period)))
args))
;; Log last commands
(setq merlin-debug-last-commands
Expand Down

0 comments on commit 8a2b989

Please sign in to comment.