[Fix #960] Add open-junk-file

open-junk-file allows quickly create a junk file, for example, to test
programming language features and allows easy saving the file when
needed.
This commit is contained in:
Tu Do 2015-04-22 17:13:55 +07:00 committed by syl20bnr
parent 093b2e1135
commit 50092b904f

View file

@ -76,6 +76,7 @@
info+
iedit
indent-guide
open-junk-file
leuven-theme
linum-relative
move-text
@ -1945,6 +1946,14 @@ Put (global-hungry-delete-mode) in dotspacemacs/config to enable by default."
:config
(spacemacs|diminish indent-guide-mode "" " i")))
(defun spacemacs/init-open-junk-file ()
(use-package open-junk-file
:defer t
:commands (open-junk-file)
:init
(evil-leader/set-key "fJ" 'open-junk-file)
(setq open-junk-file-directory (concat spacemacs-cache-directory "junk/"))))
(defun spacemacs/init-info+ ()
(use-package info+
:defer t