From aa339fc9550ceef3d29f30562f41fd64f5c30631 Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Sun, 9 Oct 2016 17:21:20 +0200 Subject: [PATCH] some aliases and whitespace-display-mappings Signed-off-by: Andreas Gerler --- bba.org | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/bba.org b/bba.org index f1b5f9fc..2a4c40a6 100644 --- a/bba.org +++ b/bba.org @@ -2507,6 +2507,9 @@ combine key strokes to access commands even faster. #+BEGIN_SRC emacs-lisp (defalias 'ts 'transpose-sentences) (defalias 'tp 'transpose-paragraphs) + (defalias 'om 'org-mode) + (defalias 'vsql 'sql-vertica) + (defalias 'mysql 'sql-mysql) #+END_SRC * [[http://mbork.pl/2015-10-31_Smart_comma_and_other_punctuation][smart comma]] @@ -2571,6 +2574,18 @@ function to convert groups of spaces to hard tabs. #+BEGIN_SRC emacs-lisp (define-key bba/toggle "w" 'whitespace-mode) + (setq whitespace-display-mappings + ;; all numbers are Unicode codepoint in decimal. try (insert-char 182 ) to see it + '( + (space-mark 32 [183] [46]) ; 32 SPACE, 183 MIDDLE DOT 「·」, 46 FULL STOP 「.」 + (newline-mark 10 [182 10]) ; 10 LINE FEED + (tab-mark 9 [9655 9] [92 9]) ; 9 TAB, 9655 WHITE RIGHT-POINTING TRIANGLE 「▷」 + )) +#+END_SRC + +#+BEGIN_SRC emacs-lisp + + (define-prefix-command 'bba/launcher) (define-key global-map "\C-xl" 'bba/launcher) -- 2.47.3