add c-c++ package, disaster: disassemble c/c++ code

This commit is contained in:
William Casarin 2015-07-27 15:04:39 -07:00 committed by syl20bnr
parent bd432752bc
commit cc10f1d4a7
2 changed files with 14 additions and 0 deletions

View File

@ -22,6 +22,7 @@ scripts.
* Features
- Support syntax checking via flycheck with Clang.
- Support for disassembly of code with [[https://github.com/jart/disaster][disaster]].
- Support code reformatting with [[http://clang.llvm.org/docs/ClangFormat.html][clang-format]].
- Display function or variable definition at the bottom. (when =semantic= layer is included)
- Display current function cursor is in at the top. See [[https://github.com/tuhdo/semantic-stickyfunc-enhance][stickyfunc-demos]] for
@ -104,6 +105,7 @@ doesn't complain about missing header files.
|-------------+------------------------------------------------------------------------|
| ~SPC m g o~ | open matching file (e.g. switch between .cpp and .h) |
| ~SPC m g O~ | open matching file in another window (e.g. switch between .cpp and .h) |
| ~SPC m d~ | disaster: disassemble c/c++ code |
| ~SPC m r~ | srefactor: refactor thing at point. |
*Note:* [[https://github.com/tuhdo/semantic-refactor][semantic-refactor]] is only available for Emacs 24.4+

View File

@ -13,6 +13,7 @@
(setq c-c++-packages
'(
cc-mode
disaster
clang-format
cmake-mode
company
@ -48,6 +49,17 @@
"mga" 'projectile-find-other-file
"mgA" 'projectile-find-other-file-other-window))))
(defun c-c++/init-disaster ()
(use-package disaster
:defer t
:commands (disaster)
:init
(progn
(evil-leader/set-key-for-mode 'c-mode
"md" 'disaster)
(evil-leader/set-key-for-mode 'c++-mode
"md" 'disaster))))
(defun c-c++/init-clang-format ()
(use-package clang-format
:if c-c++-enable-clang-support))