summaryrefslogtreecommitdiff
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
parentf565d67a64d664ff2f53980fe0947cf705af56e9 (diff)
2019-06-17 19:30
-rw-r--r--bash/bashrc.sync2
-rw-r--r--emacs/init.el6
2 files changed, 8 insertions, 0 deletions
diff --git a/bash/bashrc.sync b/bash/bashrc.sync
index 199e206..f191b3f 100644
--- a/bash/bashrc.sync
+++ b/bash/bashrc.sync
@@ -14,6 +14,8 @@ alias ledger-checking='ledger register checking --tail 15'
alias ledger-worth='ledger bal ^assets ^liabilities'
+alias enscript='enscript -Bc'
+
# --- prompt command ------------------------------------------------------------------------------
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)