# HG changeset patch # User Oleksandr Gavenko # Date 1449875167 -7200 # Node ID d893dc8fe820d736a2cf11c6a99126b2c7127457 # Parent a37d430740611994bc1488873a06051f9878b9db Fix: major-mode should have highest priority, default handlers - least. diff -r a37d43074061 -r d893dc8fe820 autobm.el --- a/autobm.el Sat Dec 12 00:45:05 2015 +0200 +++ b/autobm.el Sat Dec 12 01:06:07 2015 +0200 @@ -21,11 +21,11 @@ (cl-some #'thing-at-point autobm-try-thingatpt-things)) (defun autobm-get-active-handlers () - (let ( h handlers (modes (list t)) ) + (let ( h handlers (modes (list major-mode)) ) (dolist (m minor-mode-list) (when (and (boundp m) (symbol-value m)) (push m modes))) - (push major-mode modes) + (push t modes) (dolist (m modes) (setq h (assoc m autobm-mode-handlers)) (when h