Skip to content

Instantly share code, notes, and snippets.

@guehara
Created May 30, 2013 02:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guehara/5675443 to your computer and use it in GitHub Desktop.
Save guehara/5675443 to your computer and use it in GitHub Desktop.
obj-c headline for helm
(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