Skip to content

Commit

Permalink
Fix editor-save-as-kill function to switch current buffer to saved fi…
Browse files Browse the repository at this point in the history
…le after save.
  • Loading branch information
TakesxiSximada committed Oct 12, 2020
1 parent dc33d6d commit b90abd5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions init.el
Expand Up @@ -1212,11 +1212,11 @@
(with-current-buffer (get-buffer editor-buffer-name)
(buffer-substring-no-properties (point-min) (point-max))))


(defun editor-save-as-kill ()
(interactive)
(symdon-ga-post
(editor-get-editor-buffer-text))
(switch-to-buffer
(symdon-ga-post
(editor-get-editor-buffer-text)))
(kill-buffer editor-buffer-name))

(custom-set-variables '(symdon-ga-post-directory "/ng/symdon/pages/posts"))
Expand Down

0 comments on commit b90abd5

Please sign in to comment.