Skip to content

Instantly share code, notes, and snippets.

@legumbre
Created October 20, 2011 17:05
Show Gist options
  • Select an option

  • Save legumbre/1301677 to your computer and use it in GitHub Desktop.

Select an option

Save legumbre/1301677 to your computer and use it in GitHub Desktop.
;; ---------- Objective-C
;; load objc-mode for objective-C header files
(add-to-list 'magic-mode-alist
`(,(lambda ()
(and (string= (file-name-extension buffer-file-name) "h")
(re-search-forward "@\\<interface\\>" magic-mode-regexp-match-limit t)))
. objc-mode))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment