From afac4e9505fdf87e48650feb14b7a8b26808672e Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Wed, 10 Dec 2014 23:23:51 -0500 Subject: [PATCH] Fix #223 Changing buffers causes periodic recentering --- spacemacs/config.el | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/spacemacs/config.el b/spacemacs/config.el index 04c3719b6..51b1e1fe4 100644 --- a/spacemacs/config.el +++ b/spacemacs/config.el @@ -52,6 +52,19 @@ ;; use C-u as scroll-up (setq-default evil-want-C-u-scroll t) +;; Hack to fix a bug with tabulated-list.el +;; see: http://redd.it/2dgy52 +(defun tabulated-list-revert (&rest ignored) + "The `revert-buffer-function' for `tabulated-list-mode'. +It runs `tabulated-list-revert-hook', then calls `tabulated-list-print'." + (interactive) + (unless (derived-mode-p 'tabulated-list-mode) + (error "The current buffer is not in Tabulated List mode")) + (run-hooks 'tabulated-list-revert-hook) + ;; hack is here + ;; (tabulated-list-print t) + (tabulated-list-print)) + ;; --------------------------------------------------------------------------- ;; Edit ;; ---------------------------------------------------------------------------