-
-
Save johnfredcee/4339358 to your computer and use it in GitHub Desktop.
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
;; assume filename is same as classname | |
(defun get-class-name () | |
(file-name-nondirectory (file-name-sans-extension buffer-file-name))) | |
;; insert it interactively | |
(defun insert-class-name () | |
(interactive) | |
(insert (get-class-name))) | |
(local-set-key [(meta ?#)] 'insert-class-name) | |
(require 'semantic/find) | |
(require 'doc-mode) | |
(defun doc-tag () | |
(interactive) | |
(semantic-mode 1) | |
(doc-mode 1) | |
(doc-mode-fix-tag-doc) | |
(doc-mode -1) | |
(semantic-mode -1)) | |
(local-set-key [(meta f11)] 'doc-tag) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment