summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/general.el19
-rw-r--r--lisp/web.el9
2 files changed, 13 insertions, 15 deletions
diff --git a/lisp/general.el b/lisp/general.el
index e048836..3a16614 100644
--- a/lisp/general.el
+++ b/lisp/general.el
@@ -1,4 +1,3 @@
-
;;; Code:
;; Backup files
@@ -79,9 +78,9 @@
(setq-default right-fringe-width 20)
;; Initialization screen
-;(setq inhibit-splash-screen t)
-;(setq initial-scratch-message "")
-;(setq initial-major-mode 'text-mode)
+(setq inhibit-splash-screen t)
+(setq initial-scratch-message "* Scratch")
+(setq initial-major-mode 'org-mode)
;; Better undo functionality
;; TODO: Evil mode is disabled for now
@@ -101,8 +100,10 @@
(define-key projectile-mode-map (kbd "s-F") 'projectile-grep)
(define-key projectile-mode-map [?\s-o] 'projectile-switch-project)
(define-key projectile-mode-map [?\s-p] 'projectile-find-file)
-(add-to-list 'projectile-globally-ignored-directories "*node_modules")
-(setq projectile-indexing-method 'alien)
+;(setq projectile-indexing-method 'alien)
+(setq projectile-indexing-method 'native)
+(setq projectile-enable-caching t)
+(add-to-list 'projectile-globally-ignored-directories "node_modules")
;; Ido mode text matching
(require 'ivy)
@@ -162,12 +163,6 @@
(use-package git-gutter-fringe
:ensure t)
-
-;; Show flycheck always and after save
-;(use-package flycheck :ensure t)
-;(global-flycheck-mode)
- ;(add-hook 'after-init-hook #'global-flycheck-mode)
-
;; Emojis
(use-package emojify
:config
diff --git a/lisp/web.el b/lisp/web.el
index e7af0d4..eece1e0 100644
--- a/lisp/web.el
+++ b/lisp/web.el
@@ -30,7 +30,7 @@
;; TypeScript
(add-to-list 'auto-mode-alist '("\\.tsx\\'" . web-mode))
-;; Eslint through Flycheck.
+
(require 'flycheck)
(setq-default flycheck-disabled-checkers
(append flycheck-disabled-checkers
@@ -40,8 +40,8 @@
'(json-jsonlist)))
(flycheck-add-mode 'javascript-eslint 'js-mode)
(flycheck-add-mode 'typescript-tslint 'typescript-mode)
-; use local eslint from node_modules before global
-; http://emacs.stackexchange.com/questions/21205/flycheck-with-file-relative-eslint-executable
+(add-hook 'js-mode-hook 'flycheck-mode)
+(add-hook 'typescript-mode-hook 'flycheck-mode)
(defun my-use-eslint-from-node-modules ()
"Use eslint from local node_modules instead of globally."
(let* ((root (locate-dominating-file
@@ -54,6 +54,9 @@
(setq-local flycheck-javascript-eslint-executable eslint))))
(add-hook 'flycheck-mode-hook #'my-use-eslint-from-node-modules)
+; use local eslint from node_modules before global
+; http://emacs.stackexchange.com/questions/21205/flycheck-with-file-relative-eslint-executable
+
;; Package management
(require 'eglot)
(add-hook 'js-mode-hook 'eglot-ensure)