branch: elpa/javelin
commit c010d2c2cbe028aaa7c787b445531caf64b87ade
Author: Otávio Schwanck dos Santos <[email protected]>
Commit: Otávio Schwanck dos Santos <[email protected]>
improve harpoon message
---
harpoon.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/harpoon.el b/harpoon.el
index f719b5be559..2dfccb8cf7d 100644
--- a/harpoon.el
+++ b/harpoon.el
@@ -146,7 +146,9 @@
(harpoon--get-file-text)))
(if (string-match-p (harpoon--buffer-file-name) harpoon-current-file-text)
(message "This file is already on harpoon!")
- (f-write-text (concat harpoon-current-file-text
(harpoon--buffer-file-name) "\n") 'utf-8 (harpoon--file-name)))))
+ (progn
+ (f-write-text (concat harpoon-current-file-text
(harpoon--buffer-file-name) "\n") 'utf-8 (harpoon--file-name))
+ (message "File added to harpoon!")))))
(defun harpoon--get-file-text ()
"Get text inside harpoon file."