-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot-emacs-cros.el
99 lines (90 loc) · 4.05 KB
/
dot-emacs-cros.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
;; -*- emacs-lisp -*-
;; Keunwoo Lee's .emacs file for ChromeOS
;;;;;;;;;;;;;;;;;;;;;; PRELIMINARIES ;;;;;;;;;;;;;;;;;;;;
;; As of 2024-02-19, emacs 29 warns on a lot of packages for things like
;; "docstring over 80 characters"; silence it.
(setq warning-minimum-level :error)
;; Added by Package.el. This must come before configurations of installed packages.
(if (fboundp 'package-initialize)
(package-initialize))
;; Custom load paths
(cd (getenv "HOME"))
(add-to-list 'load-path (concat (getenv "HOME") "/lib/emacs"))
(require 'dot-emacs-common)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(blink-cursor-mode nil)
'(c-offsets-alist '((innamespace . +)))
'(column-number-mode t)
'(dired-use-ls-dired nil)
'(elisp-cache-byte-compile-files t)
'(explicit-shell-file-name "/bin/bash")
'(grep-command "grep -nHi ")
'(ibuffer-enable t)
'(ibuffer-formats
'((mark modified read-only " "
(name 32 32 :left :elide)
" "
(size 9 -1 :right)
" "
(mode 16 16 :left :elide)
" " filename-and-process)
(mark " "
(name 16 -1)
" " filename)))
'(json-reformat:indent-width 2)
'(longlines-show-hard-newlines nil)
'(longlines-wrap-follows-window-size t)
'(lsp-lens-enable nil)
'(magit-refs-sections-hook
'(magit-insert-error-header magit-insert-branch-description magit-insert-local-branches))
'(octave-block-offset 4)
'(package-archives
'(("gnu" . "https://elpa.gnu.org/packages/")
("melpa" . "https://melpa.org/packages/")))
'(package-selected-packages
'(eglot helm-lsp lsp-ui lsp-mode prettier-js adaptive-wrap column-enforce-mode company flycheck-flow git-commit go-mode helm-ls-git js2-mode json-mode jsx-mode magit markdown-mode rust-mode swift-mode tide urlenc use-package web-mode))
'(ps-print-header-frame nil)
'(safe-local-variable-values
'((eval rename-buffer "*notes*")
(buffer-file-coding-system . utf-8-dos)
(css-indent-offset . 2)))
'(scroll-bar-mode 'right)
'(show-trailing-whitespace t)
'(tide-sync-request-timeout 5)
'(tide-tsserver-process-environment '("NODE_OPTIONS='--max_old_space_size=8000'"))
'(tool-bar-mode nil)
'(vc-follow-symlinks nil)
'(visible-bell t)
'(visible-cursor nil)
'(web-mode-attr-indent-offset 4)
'(web-mode-enable-optional-tags nil)
'(web-mode-script-padding 0)
'(web-mode-style-padding 4)
'(whitespace-style
'(face tabs trailing space-before-tab empty space-after-tab tab-mark)))
(setq tide-node-executable (concat (getenv "HOME") "/bin/node"))
(setq tide-tscompiler-executable (concat (getenv "HOME") "/.yarn/bin/tsc"))
(setq tide-tsserver-executable (concat (getenv "HOME") "/.yarn/bin/tsserver"))
(setenv "DENO_INSTALL" (concat (getenv "HOME") "/.deno"))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(default ((t (:inherit nil :extend nil :stipple nil :background "white" :foreground "black" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 96 :width normal :foundry "GOOG" :family "Noto Mono"))))
'(column-enforce-face ((t (:inherit nil :underline "#966"))))
'(flycheck-error ((t (:underline "orchid3"))))
'(flycheck-info ((t (:underline "ForestGreen"))))
'(font-lock-comment-face ((t (:foreground "#997777"))))
'(font-lock-function-name-face ((t (:foreground "#0226cc"))))
'(font-lock-keyword-face ((t (:foreground "#8a0f00"))))
'(font-lock-string-face ((t (:foreground "#338300"))))
'(font-lock-type-face ((t (:foreground "#665500"))))
'(font-lock-variable-name-face ((t (:foreground "#4a708b"))))
'(helm-ls-git-modified-not-staged-face ((t (:foreground "yellow4"))))
'(mode-line ((t (:background "#e5e5e5" :box nil))))
'(trailing-whitespace ((t (:background "gray95")))))