Skip to content

Commit

Permalink
workaround for slow emacs
Browse files Browse the repository at this point in the history
see bbatsov/projectile#1183
if the system is mac, set clang as checker for flycheck
  • Loading branch information
Carlos Requena López committed Oct 18, 2017
1 parent 9c407a4 commit 6aabfe4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .emacs.d/settings/packages/linting.el
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
(add-hook 'c++-mode-hook
(lambda ()
(setq flycheck-gcc-language-standard "c++14")
(setq flycheck-c/c++-gcc-executable "g++-6")
(if (system-is-mac)
(setq flycheck-c/c++-gcc-executable "clang++"))
(flycheck-select-checker 'c/c++-gcc)
)
) ;it does not interfere with c mode.
Expand Down
6 changes: 5 additions & 1 deletion .emacs.d/settings/packages/project-mgnt.el
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
(use-package projectile
:ensure t
:init
;; config: enable cache and other settings?
;; Workaround laggy emacs editor
;; see https://github.com/bbatsov/projectile/issues/1183
(setq projectile-mode-line
'(:eval (format " Projectile[%s]"
(projectile-project-name))))
:config
(projectile-global-mode)
)
Expand Down

0 comments on commit 6aabfe4

Please sign in to comment.