"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))))