rolandwalker/button-lock

Why (global-button-lock-mode 1) not work?

Closed this issue · 1 comments

(setq url-button (button-lock-set-button
                  "hello"
                  'browse-url-at-mouse
                  :face 'link :face-policy 'prepend))

Not work with (global-button-lock-mode 1)
But work with (button-lock-mode 1) in *scratch* buffer

(button-lock-set-button
 "DEV-[0-9]+"
 (lambda ()
   (interactive)
   (browse-url (concat "http://jira/browse/"
                       (buffer-substring
                        (previous-single-property-change (point) 'mouse-face)
                        (next-single-property-change (point) 'mouse-face)))))
 :face (list 'org-link))