We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7739e49 commit c67b950Copy full SHA for c67b950
swift-mode.el
@@ -215,7 +215,9 @@ Signal `scan-error' if it hits opening parentheses."
215
216
(delete-overlay swift-mode:anchor-overlay)
217
218
- (add-hook 'which-func-functions #'swift-mode:current-defun-name)
+ (add-hook 'which-func-functions (lambda ()
219
+ (when (equal (with-current-buffer (current-buffer) major-mode) 'swift-mode)
220
+ (swift-mode:current-defun-name))))
221
(setq-local add-log-current-defun-function #'swift-mode:current-defun-name))
222
223
;;;###autoload (add-to-list 'auto-mode-alist '("\\.swift\\'" . swift-mode))
0 commit comments