Skip to content

Commit

Permalink
Disable timers if kubernetes-{poll,redraw}-frequency are nil
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergroth committed Sep 14, 2021
1 parent 1502e7b commit 2f71991
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Readme.md
Expand Up @@ -52,8 +52,8 @@ example one can use the following configuration:
:ensure t
:commands (kubernetes-overview)
:config
(setq kubernetes-poll-frequency 3600
kubernetes-redraw-frequency 3600))
(setq kubernetes-poll-frequency nil
kubernetes-redraw-frequency nil))
```

## Manual Installation
Expand Down
6 changes: 4 additions & 2 deletions kubernetes-vars.el
Expand Up @@ -90,7 +90,8 @@ The function must take a single argument, which is the buffer to display."
(defcustom kubernetes-poll-frequency 5
"The frequency in seconds at which to poll Kubernetes for changes."
:group 'kubernetes
:type 'integer)
:type '(choice (integer :tag "Frequency in seconds")
(const :tag "Disabled" nil)))

(defcustom kubernetes-redraw-frequency 5
"The buffer redraw frequency in seconds.
Expand All @@ -99,7 +100,8 @@ This is the frequency at which Kubernetes buffers will be redrawn
to match the current state. This variable should be tuned to
balance interface stuttering with update frequency."
:group 'kubernetes
:type 'integer)
:type '(choice (integer :tag "Frequency in seconds")
(const :tag "Disabled" nil)))

(defcustom kubernetes-json-mode 'javascript-mode
"The mode to use when rendering pretty-printed JSON."
Expand Down

0 comments on commit 2f71991

Please sign in to comment.