summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2015-04-22 19:17:36 +0100
committerAlan Pearce2015-04-22 19:17:36 +0100
commitc93ab4ad4f63f8c93326650094cbb21802bbc0d7 (patch)
treeb47d4911d313559e0a2e43b16f3eda3bf295ab73
parent5fb9137c727ba15eb1eab11206fc3c8fb1c100df (diff)
downloadnixfiles-c93ab4ad4f63f8c93326650094cbb21802bbc0d7.tar.lz
nixfiles-c93ab4ad4f63f8c93326650094cbb21802bbc0d7.tar.zst
nixfiles-c93ab4ad4f63f8c93326650094cbb21802bbc0d7.zip
Emacs: Improve <TAB> functionality in ledger
-rw-r--r--tag-emacs/emacs.d/init.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index bcbbe05b..a8c28102 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -231,8 +231,7 @@
   :commands (global-smart-tab-mode)
   :init (global-smart-tab-mode)
   :config (progn
-            (nconc smart-tab-completion-functions-alist '((php-mode . php-complete-function)
-                                                          (ledger-mode . ledger-pcomplete)))
+            (nconc smart-tab-completion-functions-alist '((php-mode . php-complete-function)))
             (diminish 'smart-tab-mode "")))
 
 (req-package company
@@ -800,6 +799,7 @@ mouse-1: Display Line and Column Mode Menu"))))))
             (defun setup-ledger-mode ()
               (setq-local indent-tabs-mode nil))
             (add-hook 'ledger-mode-hook #'setup-ledger-mode)
+            (add-to-list 'smart-tab-disabled-major-modes 'ledger-mode)
             (setq ledger-use-iso-dates t
                   ledger-post-use-completion-engine 'ido
                   ledger-reconcile-default-commodity "£"