all repos — nixfiles @ c93ab4ad4f63f8c93326650094cbb21802bbc0d7

System and user configuration, managed by nix and home-manager

Emacs: Improve <TAB> functionality in ledger
Alan Pearce alan@alanpearce.co.uk
Wed, 22 Apr 2015 19:17:36 +0100
commit

c93ab4ad4f63f8c93326650094cbb21802bbc0d7

parent

5fb9137c727ba15eb1eab11206fc3c8fb1c100df

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -231,8 +231,7 @@ (req-package smart-tab   :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 @@ :config (progn             (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 "£"