]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
some aliases and whitespace-display-mappings
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Sun, 9 Oct 2016 15:21:20 +0000 (17:21 +0200)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Sun, 9 Oct 2016 15:21:20 +0000 (17:21 +0200)
Signed-off-by: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
bba.org

diff --git a/bba.org b/bba.org
index f1b5f9fc3392b7bcb834e368301a490b373acf6e..2a4c40a60d64da431236d638410cae27c1a5347d 100644 (file)
--- 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)