(load-library "my-keys")
(load-library "my-completion")
(load-library "my-recentf")
+(load-library "my-flycheck")
(load-library "my-other-modes")
(load-library "my-minor-modes")
(load-library "my-file-modes")
"If using a terminal frame then sends the escape codes to update the title."
(if (terminal-parameter (frame-terminal) 'terminal-initted)
(send-string-to-terminal (concat "\033]0;" (my/generate-frame-title) "\007"))))
-
-(defun my/use-eslint-from-node-modules ()
- (let* ((root (locate-dominating-file
- (or (buffer-file-name) default-directory)
- "node_modules"))
- (eslint (and root
- (expand-file-name "node_modules/.bin/eslint" root))))
- (when (and eslint (file-executable-p eslint))
- (setq-local flycheck-javascript-eslint-executable eslint))))
(require 'js2-mode)
(add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
(add-to-list 'interpreter-mode-alist '("node" . js2-mode))
+(setq js2-concat-multiline-strings 'eol)
+(setq js2-highlight-external-variables nil)
(require 'markdown-mode)
(setq markdown-command "markdown_py -x markdown.extensions.smart_strong -x markdown.extensions.fenced_code -x markdown.extensions.nl2br")
--- /dev/null
+(require 'flycheck)
+
+(global-flycheck-mode 1)
+
+(setq-default flycheck-disabled-checkers '(emacs-lisp-checkdoc))
+
+(setq flycheck-emacs-lisp-load-path 'inherit)
+
+(add-hook 'flycheck-mode-hook #'my/use-eslint-from-node-modules)
+
+(setq flycheck-indication-mode 'right-fringe)
+
+(define-fringe-bitmap 'flycheck-fringe-bitmap-double-arrow
+ (vector #b00000000
+ #b00000000
+ #b00000000
+ #b00000000
+ #b00000000
+ #b00011001
+ #b00110110
+ #b01101100
+ #b11011000
+ #b01101100
+ #b00110110
+ #b00011001
+ #b00000000
+ #b00000000
+ #b00000000
+ #b00000000
+ #b00000000))
+
+(defun my/use-eslint-from-node-modules ()
+ (let* ((root (locate-dominating-file
+ (or (buffer-file-name) default-directory)
+ "node_modules"))
+ (eslint (and root
+ (expand-file-name "node_modules/.bin/eslint" root))))
+ (when (and eslint (file-executable-p eslint))
+ (setq-local flycheck-javascript-eslint-executable eslint))))
(require 'flyspell)
-(require 'flycheck)
-(global-flycheck-mode 1)
-(setq-default flycheck-disabled-checkers '(emacs-lisp-checkdoc))
-(setq flycheck-emacs-lisp-load-path 'inherit)
-(add-hook 'flycheck-mode-hook #'my/use-eslint-from-node-modules)
-
(require 'misc)
(require 'multiple-cursors)