]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
incorporate external password generator
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Wed, 31 May 2017 15:40:25 +0000 (17:40 +0200)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Wed, 31 May 2017 15:40:25 +0000 (17:40 +0200)
* bind it to s-p

Signed-off-by: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
bba.org

diff --git a/bba.org b/bba.org
index 8d1b94f2540d411cf4490d8bc20eb9b444484c1d..386dbfc99bd6bfb0b354c8dcdd29f11a339f72fe 100644 (file)
--- a/bba.org
+++ b/bba.org
@@ -2650,6 +2650,22 @@ fullscreen mode. disable scroll bar in fullscreen mode.
     )
   (global-set-key (kbd "s-<return>") 'bba-toggle-fullscreen)
 #+END_SRC
+
+* generate passwords
+[2017-05-31 Wed 16:33]
+
+#+BEGIN_SRC emacs-lisp :tangle yes
+  (defun bba-insert-pw(v2)
+  "insert password"
+  (interactive "P")
+  (if v2
+      (insert (shell-command-to-string "password2.pl"))
+    (insert (shell-command-to-string "password.pl"))
+    )
+  )
+  (define-key global-map (kbd "s-p") 'bba-insert-pw)
+#+END_SRC
+
 * [[http://www.howardism.org/Technical/Emacs/eshell-fun.html][eshell-here]]
 Thanks to Howard Abrams.
 modified because current version lacks function have