Browse Source

Added irony mode to emacs

master
Josh Wolfe 3 years ago
parent
commit
4ca0867c85
1 changed files with 9 additions and 12 deletions
  1. 9
    12
      emacs/.emacs.d/README.org

+ 9
- 12
emacs/.emacs.d/README.org View File

@@ -182,7 +182,7 @@ Looks up tag under point.
(defun wolfe/find-tag ()
"Jump to the tag at point without prompting"
(interactive)
(xref-find-definitions (find-tag-default)))
(find-tag (find-tag-default)))
#+END_SRC

#+BEGIN_SRC emacs-lisp :tangle yes
@@ -697,9 +697,16 @@ Better narrowing.

;; C / C++
(setq company-clang-insert-arguments nil)
(add-hook 'c++-mode-hook 'irony-mode)
(add-hook 'c-mode-hook 'irony-mode)

(use-package company-irony
:config
(eval-after-load 'company
'(add-to-list 'company-backends 'company-irony)))

(require 'color)
(let ((bg (face-attribute 'default :background)))
(custom-set-faces
`(company-tooltip ((t (:inherit default :background ,(color-lighten-name bg 2)))))
@@ -707,16 +714,6 @@ Better narrowing.
`(company-scrollbar-fg ((t (:background ,(color-lighten-name bg 5)))))
`(company-tooltip-selection ((t (:inherit font-lock-function-name-face))))
`(company-tooltip-common ((t (:inherit font-lock-constant-face)))))))

(use-package company-math
:config
(defun wolfe/latex-setup ()
(setq-local company-backends
(append '((company-math-symbols-latex company-latex-commands))
company-backends)))

(add-hook 'org-mode-hook 'wolfe/latex-setup)
(add-hook 'tex-mode-hook 'wolfe/latex-setup))
#+END_SRC

* Misc

Loading…
Cancel
Save