[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#68981: [PATCH] Add support for deriving major modes in which-func
From: |
Damien Cassou |
Subject: |
bug#68981: [PATCH] Add support for deriving major modes in which-func |
Date: |
Wed, 07 Feb 2024 20:51:31 +0100 |
Tags: patch
Hi,
I wanted to configure which-func to activate only for programmation
modes so I wrote:
(use-package which-func
:init
(progn
(setq which-func-modes '(prog-mode)))
:config
(progn
(which-function-mode)))
But this doesn't work because which-func only checks for exact major
modes, not derived ones: because emacs-lisp-mode is not in
`which-func-modes`, I won't get which-func to activate in
emacs-lisp-mode even though I want it.
I wrote the attached patch so which-func uses `derived-mode-p'. This
solves my issue.
--
Damien Cassou
"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill
0001-Add-support-for-deriving-major-modes-in-which-func.patch
Description: Text Data
- bug#68981: [PATCH] Add support for deriving major modes in which-func,
Damien Cassou <=