Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (14 sloc) 492 Bytes
(live-add-pack-lib "/deft/")
(require 'deft)
(setq deft-directory "~/.deft")
(setq deft-extension "md")
(setq deft-text-mode 'markdown-mode)
(setq deft-use-filename-as-title t)
(setq deft-auto-save-interval 0) ; super annoying :(
(defun deft-open-stack ()
(interactive)
(deft-open-file "~/.deft/stack.md")
(end-of-buffer))
(global-set-key (kbd "M-'") 'deft)
(global-set-key (kbd "C-'") 'deft-open-stack)
(define-key deft-mode-map (kbd "<C-backspace>") 'deft-filter-decrement-word)