;(semantic-mode 1)
+
+; set LD_LIBRARY_PATH
+(setenv "LD_LIBRARY_PATH" "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/")
+; load irony-mode
+;( add-to-list 'load-path (expand-file-name "~/.emacs.d/irony-mode/elisp/"))
+(require 'irony)
(add-hook 'c++-mode-hook 'irony-mode)
(add-hook 'c-mode-hook 'irony-mode)
(add-hook 'objc-mode-hook 'irony-mode)
-
-;;---------------------------------------------------------------------------------------
-;; irony-mode
-;;
;; replace the `completion-at-point' and `complete-symbol' bindings in
;; irony-mode's buffers by irony-mode's function
(defun my-irony-mode-hook ()
-
;; c/c++ auto-complete, yasnippet, auto-complet-c-headers
;;https://www.youtube.com/watch?v=HTUE03LnaXA&list=PL-mFLc7R_MJet8ItKipCtYc7PWoS5KTfM
(require 'auto-complete)
;; flymake-google-cpplint-load
;; define a function for flymake initialization
-(defun my:flymake-google-init ()
- (require 'flymake-google-cpplint)
- (custom-set-variables
- '(flymake-google-cpplint-command "/usr/local/bin/cpplint"))
- (flymake-google-cpplint-load)
- )
-(add-hook 'c-mode-hook 'my:flymake-google-init)
-(add-hook 'c++-mode-hook 'my:flymake-google-init)
+;(defun my:flymake-google-init ()
+; (require 'flymake-google-cpplint)
+; (custom-set-variables
+; '(flymake-google-cpplint-command "/usr/local/bin/cpplint"))
+; (flymake-google-cpplint-load)
+; )
+;(add-hook 'c-mode-hook 'my:flymake-google-init)
+;(add-hook 'c++-mode-hook 'my:flymake-google-init)
;; start google-c-style with emacs
;(require 'google-c-style)
-(add-hook 'c-mode-hook 'google-set-c-style)
-(add-hook 'c++-mode-hook 'google-make-newline-indent)
+;(add-hook 'c-mode-hook 'google-set-c-style)
+;(add-hook 'c++-mode-hook 'google-make-newline-indent)
+
+
;; cedet
(semantic-mode 1)
;; turn on automatic reparsing of open buffers in semantic
(global-semantic-idle-scheduler-mode 1)
+(global-semantic-stickyfunc-mode 1)