Skip to content

Commit ed3fb35

Browse files
authored
Check if functions exist (#12)
1 parent 915a281 commit ed3fb35

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

fuzzy-finder.el

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,10 @@ DIRECTORY. For example, `fuzzy-finder-default-arguments' for the ARGUMENTS key.
259259
(setq-local fuzzy-finder--output-delimiter output-delimiter)
260260
(setq-local fuzzy-finder--action action)
261261

262-
(linum-mode 0)
263-
(visual-line-mode 0)
262+
(when (fboundp #'linum-mode)
263+
(linum-mode 0))
264+
(when (fboundp #'visual-line-mode)
265+
(visual-line-mode 0))
264266
(when (fboundp #'company-mode)
265267
(company-mode 0))
266268
(setq-local mode-line-format nil)

0 commit comments

Comments
 (0)