Skip to content

Commit

Permalink
[Compatibility] Disable context-menu-mode warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Miller committed Aug 30, 2023
1 parent 66d0eab commit 7cb7cea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/elisp/treemacs-compatibility.el
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ width of the new window when the treemacs window is visible."
(when (fboundp 'context-menu-mode)
(defun treemacs--disable-context-menu-mode ()
(treemacs-run-in-all-derived-buffers
(setq-local context-menu-functions nil)))
(with-no-warnings
(setq-local context-menu-functions nil))))
(add-hook 'context-menu-mode-hook 'treemacs--disable-context-menu-mode))

(defun treemacs-load-all-the-icons-with-workaround-font (font)
Expand Down

0 comments on commit 7cb7cea

Please sign in to comment.