Adjust puppet package
authorJoerg Jaspert <joerg.jaspert@dlh.de>
Tue, 4 Oct 2016 11:13:43 +0000 (13:13 +0200)
committerJoerg Jaspert <joerg.jaspert@dlh.de>
Tue, 4 Oct 2016 11:13:43 +0000 (13:13 +0200)
.emacs.d/config/emacs.org

index dfe2569..fc1a3cc 100644 (file)
@@ -4239,18 +4239,23 @@ up here to be used.
 [2014-05-22 Thu 00:05]
 #+BEGIN_SRC emacs-lisp
 (use-package puppet-mode
+  :ensure t
   :mode ("\\.pp\\'" . puppet-mode)
+  :bind (:map puppet-mode-map
+              ("C-c C-a" . puppet-align-block)
+              ("C-c '" . puppet-toggle-string-quotes)
+              ("C-c <delete>" . puppet-clear-string)
+              ("C-c C-j" . imenu)
+              ("C-c M-a" . puppet-set-anchor)
+              ("C-c C-r" . puppet-create-require)
+              )
   :commands puppet-mode
   :config
   (progn
     (defun my-puppet-mode-hook ()
       (setq require-final-newline nil))
     (add-hook 'puppet-mode-hook 'my-puppet-mode-hook)
-    (use-package puppet-ext
-      :init
-      (progn
-        (bind-key "C-x ?" 'puppet-set-anchor puppet-mode-map)
-        (bind-key "C-c C-r" 'puppet-create-require puppet-mode-map)))))
+    (use-package puppet-ext)))
 #+END_SRC
 
 ** python