Skip to content

Commit

Permalink
Add prefix for prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
Gábor Török committed Dec 23, 2013
1 parent 93ec811 commit 2ea9ae5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions wakatime-mode.el
Expand Up @@ -66,12 +66,13 @@ Set SAVEP to non-nil for write action."
(float-time)))

(defun wakatime-init ()
(if (or (not wakatime-api-key) (string= "" wakatime-api-key))
(let ((api-key (read-string "API key: ")))
(if (or (not wakatime-api-key)
(string= "" wakatime-api-key))
(let ((api-key (read-string "WakaTime API key: ")))
(customize-save-variable 'wakatime-api-key api-key)))
(if (or (not wakatime-cli-path)
(not (file-exists-p wakatime-cli-path)))
(let ((cli-path (read-string "CLI script path: ")))
(let ((cli-path (read-string "WakaTime CLI script path: ")))
(customize-save-variable 'wakatime-cli-path cli-path))))

(defun wakatime-call (command)
Expand Down

0 comments on commit 2ea9ae5

Please sign in to comment.