summaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authorBlaise Thompson <blaise@untzag.com>2019-06-17 19:30:59 -0500
committerBlaise Thompson <blaise@untzag.com>2019-06-17 19:30:59 -0500
commit900b774ec3950b26b0ac94e52e0f04c12323af0e (patch)
tree27faede68681a099c52472ad6c8ed7479bd52103 /emacs
parentf565d67a64d664ff2f53980fe0947cf705af56e9 (diff)
2019-06-17 19:30
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el6
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)