summary refs log tree commit diff stats
path: root/tag-emacs/emacs.d/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'tag-emacs/emacs.d/init.el')
-rw-r--r--tag-emacs/emacs.d/init.el12
1 files changed, 11 insertions, 1 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index 735993af..40f59b2f 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -231,7 +231,8 @@
   :commands (global-smart-tab-mode)
   :init (global-smart-tab-mode)
   :config (progn
-            (nconc smart-tab-completion-functions-alist '((php-mode . php-complete-function)))
+            (nconc smart-tab-completion-functions-alist '((php-mode . php-complete-function)
+                                                          (ledger-mode . ledger-pcomplete)))
             (diminish 'smart-tab-mode "")))
 
 (req-package company
@@ -792,6 +793,15 @@ mouse-1: Display Line and Column Mode Menu"))))))
 (req-package lua-mode
   :defer t)
 
+(req-package ledger-mode
+  :mode ("\\.ledger\\'" . ledger-mode)
+  :config (progn
+            (defun setup-ledger-mode ()
+              (setq-local indent-tabs-mode nil))
+            (add-hook 'ledger-mode-hook #'setup-ledger-mode)
+            (setq ledger-use-iso-dates t
+                  ledger-post-use-completion-engine 'ido)))
+
 (req-package ruby-mode
   :mode (("\\.rb\\'" . ruby-mode)
          ("\\.cap\\'" . ruby-mode)))