Emacs: Improve <TAB> functionality in ledger
Alan Pearce alan@alanpearce.co.uk
Wed, 22 Apr 2015 19:17:36 +0100
1 files changed, 2 insertions(+), 2 deletions(-)
jump to
M tag-emacs/emacs.d/init.el → tag-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 "£"