Created
December 16, 2016 01:24
-
-
Save inlinechan/13d8713ee5156d0a87b2ebd6fbab3458 to your computer and use it in GitHub Desktop.
Find class definition in chromium
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
(defun hc/search-class-decl () | |
(interactive) | |
(let ((pattern "^\'*class ?\\([A-Z_]+\\)? ?[A-Za-z0-9_]+")) | |
(isearch-forward-regexp nil 1) | |
(setq isearch-regexp t | |
isearch-string pattern | |
isearch-yank-flag t) | |
(isearch-search-and-update))) | |
(add-hook 'c++-mode-hook | |
(lambda () | |
(define-key c-mode-base-map (kbd "C-c r d") 'hc/search-class-decl))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment