Permalink
Browse files

Write the simplenote-key file local variable using add-file-local-var…

…iable
  • Loading branch information...
1 parent 101f8cc commit 83e78d3b2c6b1657a248702917d2c7172e895946 @cefstat committed May 9, 2010
Showing with 1 addition and 3 deletions.
  1. +1 −3 simplenote.el
View
@@ -231,9 +231,7 @@
(progn
(setq simplenote-key key)
(message "Created note %s" key)
- (save-excursion
- (goto-char (1+ (buffer-size)))
- (insert (format "Local variables:\nsimplenote-key: \"%s\"\nEnd:\n" key)))
+ (add-file-local-variable 'simplenote-key key)
(simplenote-push-buffer))
(message "Failed to create new note"))))

0 comments on commit 83e78d3

Please sign in to comment.