diff options
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/init.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/emacs/init.el b/emacs/init.el index 9822153..35f6e1b 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -237,6 +237,11 @@ hl-line-mode (flyspell-goto-next-error) (call-interactively 'helm-flyspell-correct)) +(defun print-file() + "Blaise's custom print-file function" + (interactive) + (shell-command (concat "enscript -Bc " buffer-file-name))) + (defun push-mark-no-activate () "Pushes `point' to `mark-ring' and does not activate the region Equivalent to \\[set-mark-command] when \\[transient-mark-mode] is disabled" @@ -277,6 +282,7 @@ hl-line-mode (evil-leader/set-key "k" 'kill-buffer) (evil-leader/set-key "l" 'helm-bibtex) (evil-leader/set-key "m" 'helm-mini) +(evil-leader/set-key "p" 'print-file) (evil-leader/set-key "q" 'save-buffers-kill-terminal) (evil-leader/set-key "s" 'check-next-spelling-error) (evil-leader/set-key "t" 'org-clock-goto) |