diff options
-rw-r--r-- | bash/bashrc.sync | 2 | ||||
-rw-r--r-- | emacs/init.el | 6 |
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) |