forked from FG42/FG42
Several improvement to flycheck
This commit is contained in:
parent
7204b168de
commit
62f7fa3e1d
|
@ -16,6 +16,7 @@
|
||||||
(depends-on 'popwin)
|
(depends-on 'popwin)
|
||||||
(depends-on 'ag)
|
(depends-on 'ag)
|
||||||
(depends-on 'smart-mode-line)
|
(depends-on 'smart-mode-line)
|
||||||
|
|
||||||
;; TODO: Add flycheck-color-modebar
|
;; TODO: Add flycheck-color-modebar
|
||||||
;; TODO Add flycheck-tip
|
;; TODO Add flycheck-tip
|
||||||
|
|
||||||
|
|
|
@ -58,6 +58,7 @@
|
||||||
|
|
||||||
(ability flycheck ()
|
(ability flycheck ()
|
||||||
"Check syntax on the fly using flycheck."
|
"Check syntax on the fly using flycheck."
|
||||||
|
(add-hook 'prog-mode-hook 'global-flycheck-mode)
|
||||||
(add-hook 'after-init-hook 'global-flycheck-mode))
|
(add-hook 'after-init-hook 'global-flycheck-mode))
|
||||||
|
|
||||||
(ability spell ()
|
(ability spell ()
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
;; Variables
|
;; Variables
|
||||||
;; ---------------------------------------------------------------------
|
;; ---------------------------------------------------------------------
|
||||||
(defvar my-desktop-session-dir
|
(defvar my-desktop-session-dir
|
||||||
(concat (getenv "HOME") "/tmp1/")
|
(concat (getenv "HOME") "/.tmp/")
|
||||||
"*Directory to save desktop sessions in")
|
"*Directory to save desktop sessions in")
|
||||||
|
|
||||||
(defvar my-desktop-session-name-hist nil
|
(defvar my-desktop-session-name-hist nil
|
||||||
|
|
|
@ -26,6 +26,10 @@
|
||||||
(add-hook 'js2-mode-hook 'javascript-callback)
|
(add-hook 'js2-mode-hook 'javascript-callback)
|
||||||
|
|
||||||
(add-to-list 'company-backends 'company-tern)
|
(add-to-list 'company-backends 'company-tern)
|
||||||
(setq js2-highlight-level 3)))
|
(setq js2-highlight-level 3))
|
||||||
|
|
||||||
|
(ability coffee-editor ()
|
||||||
|
"Gives FG42 ability to edit coffee script files."
|
||||||
|
(custom-set-variables '(coffee-tab-width 2))))
|
||||||
|
|
||||||
(provide 'extensions/javascript/init)
|
(provide 'extensions/javascript/init)
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
(setup-general-ruby-editor)
|
(setup-general-ruby-editor)
|
||||||
(setup-inf-ruby)
|
(setup-inf-ruby)
|
||||||
(setup-bundler)
|
(setup-bundler)
|
||||||
|
(setq ruby-deep-indent-paren t)
|
||||||
|
|
||||||
(with-ability rbenv
|
(with-ability rbenv
|
||||||
(require 'rbenv)
|
(require 'rbenv)
|
||||||
|
|
Loading…
Reference in New Issue