obj-c headline for helm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defvar helm-c-source-objc-headline | |
'((name . "Objective-C Headline") | |
(headline "^[-+@]\\|^#pragma mark"))) | |
(defun objc-headline () | |
(interactive) | |
;; Set to 500 so it is displayed even if all methods are not narrowed down. | |
(let ((helm-candidate-number-limit 500)) | |
(helm-other-buffer '(helm-c-source-objc-headline) "*ObjC Headline*"))) | |
(global-set-key "\C-xp" 'objc-headline) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment