From 900b774ec3950b26b0ac94e52e0f04c12323af0e Mon Sep 17 00:00:00 2001 From: Blaise Thompson Date: Mon, 17 Jun 2019 19:30:59 -0500 Subject: 2019-06-17 19:30 --- bash/bashrc.sync | 2 ++ emacs/init.el | 6 ++++++ 2 files changed, 8 insertions(+) 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) -- cgit v1.2.3