|
1 | 1 | ;upaa So. so. so. Let's try this again. Will jack succeed this time?
|
2 | 2 | ;; Probably not. But it's worth a try.
|
3 | 3 |
|
| 4 | +(setenv "LIBRARY_PATH" "/opt/homebrew/opt/gcc/lib/gcc/14:/opt/homebrew/opt/libgccjit/lib/gcc/14:/opt/homebrew/opt/gcc/lib/gcc/14/gcc/aarch64-apple-darwin23/14") |
| 5 | + |
4 | 6 | ;;; ----Load PATH
|
5 | 7 | (defun set-exec-path-from-shell-PATH ()
|
6 | 8 | "Set up Emacs' `exec-path' and PATH environment variable to match
|
|
245 | 247 | (use-package rjsx-mode
|
246 | 248 | :config
|
247 | 249 | (add-to-list 'auto-mode-alist '("components\\/.*\\.js\\'" . rjsx-mode))
|
| 250 | + (add-to-list 'auto-mode-alist '("src\\/.*\\.js\\'" . rjsx-mode)) |
248 | 251 | (add-to-list 'auto-mode-alist '("pages\\/.*\\.js\\'" . rjsx-mode))
|
249 | 252 | (add-to-list 'auto-mode-alist '("app\\/.*\\.js\\'" . rjsx-mode))
|
250 |
| - (add-to-list 'auto-mode-alist '("app/*.js" . rjsx-mode))) |
| 253 | + (add-to-list 'auto-mode-alist '("app/*.js" . rjsx-mode)) |
| 254 | + |
| 255 | + (add-to-list 'auto-mode-alist '("components\\/.*\\.jsx\\'" . rjsx-mode)) |
| 256 | + (add-to-list 'auto-mode-alist '("src\\/.*\\.jsx\\'" . rjsx-mode)) |
| 257 | + (add-to-list 'auto-mode-alist '("pages\\/.*\\.jsx\\'" . rjsx-mode)) |
| 258 | + (add-to-list 'auto-mode-alist '("app\\/.*\\.jsx\\'" . rjsx-mode)) |
| 259 | + (add-to-list 'auto-mode-alist '("app/*.jsx" . rjsx-mode))) |
251 | 260 |
|
252 | 261 | (add-hook 'js-mode-hook (lambda () (setq indent-tabs-mode nil)))
|
253 | 262 | (add-hook 'typescript-mode-hook (lambda () (setq indent-tabs-mode nil)))
|
|
284 | 293 | ;; (company-statistics-mode))
|
285 | 294 |
|
286 | 295 |
|
287 |
| -(use-package tree-sitter |
288 |
| - :diminish tree-sitter-mode |
289 |
| - :config |
290 |
| - (global-tree-sitter-mode) |
291 |
| - (tree-sitter-require 'julia) |
292 |
| - (tree-sitter-require 'commonlisp) |
293 |
| - :hook |
294 |
| - (tree-sitter-mode . tree-sitter-hl-mode)) |
| 296 | +;; (use-package tree-sitter |
| 297 | +;; :diminish tree-sitter-mode |
| 298 | +;; :config |
| 299 | +;; (global-tree-sitter-mode) |
| 300 | +;; (tree-sitter-require 'julia) |
| 301 | +;; (tree-sitter-require 'commonlisp) |
| 302 | +;; :hook |
| 303 | +;; (tree-sitter-mode . tree-sitter-hl-mode)) |
| 304 | + |
| 305 | +;; (use-package tree-sitter-langs) |
| 306 | +(setq treesit-font-lock-level 4) |
295 | 307 |
|
296 |
| -(use-package tree-sitter-langs) |
| 308 | +(setq major-mode-remap-alist |
| 309 | + '((python-mode . python-ts-mode))) |
297 | 310 |
|
298 | 311 | (defun check-and-lsp ()
|
299 | 312 | (if (not (file-remote-p default-directory))
|
300 | 313 | (lsp)))
|
301 | 314 |
|
| 315 | +(evil-leader/set-key |
| 316 | + "hfk" 'treesit-beginning-of-defun |
| 317 | + "hfj" 'treesit-end-of-defun) |
| 318 | + |
302 | 319 | (use-package lsp-mode
|
303 | 320 | :init
|
304 | 321 | (setq lsp-auto-configure nil)
|
|
344 | 361 | ;; (css-mode . lsp)
|
345 | 362 | (svelte-mode . check-and-lsp)
|
346 | 363 | (java-mode . check-and-lsp)
|
347 |
| - (tuareg-mode . check-and-lsp)) |
| 364 | + (tuareg-mode . check-and-lsp) |
| 365 | + (python-ts-mode . check-and-lsp)) |
348 | 366 |
|
349 | 367 | (eval-after-load 'tramp
|
350 | 368 | (setq tramp-default-method "rsync"))
|
@@ -665,6 +683,7 @@ Start an unlimited search at `point-min' otherwise."
|
665 | 683 | "preq" "\\preceq"
|
666 | 684 | "sim" "\\sim"
|
667 | 685 | "succ" "\\succ"
|
| 686 | + "spv" "\\vdash" |
668 | 687 | "sucq" "\\succeq"
|
669 | 688 | "range" "\\text{range}\\"
|
670 | 689 | "smns" "\\setminus"
|
@@ -761,8 +780,12 @@ Start an unlimited search at `point-min' otherwise."
|
761 | 780 | (use-package flycheck
|
762 | 781 | :diminish flycheck-mode
|
763 | 782 | :init
|
764 |
| - (global-flycheck-mode) |
| 783 | + ;; (global-flycheck-mode -1) |
765 | 784 | :config
|
| 785 | + (evil-leader/set-key-for-mode 'python-ts-mode |
| 786 | + "hfc" 'flycheck-mode) |
| 787 | + (evil-leader/set-key-for-mode 'prog-mode |
| 788 | + "hfc" 'flycheck-mode) |
766 | 789 | (setq flycheck-check-syntax-automatically '(mode-enabled save idle-change))
|
767 | 790 | (set-face-attribute 'flycheck-error nil :underline t)
|
768 | 791 | (set-face-attribute 'flycheck-warning nil :underline t)
|
@@ -831,6 +854,14 @@ Start an unlimited search at `point-min' otherwise."
|
831 | 854 |
|
832 | 855 | ;; ----developer tools
|
833 | 856 |
|
| 857 | +(use-package copilot |
| 858 | + :straight (:host github :repo "copilot-emacs/copilot.el" :files ("*.el")) |
| 859 | + :ensure t |
| 860 | + :config |
| 861 | + (evil-leader/set-key |
| 862 | + "hai" 'copilot-mode) |
| 863 | + (define-key copilot-completion-map (kbd "C-M-<return>") 'copilot-accept-completion)) |
| 864 | + |
834 | 865 | ;; ripgrep
|
835 | 866 | (use-package deadgrep
|
836 | 867 | :config
|
@@ -1573,7 +1604,7 @@ rather than the whole path."
|
1573 | 1604 | (setq numpydoc-insertion-style 'prompt)
|
1574 | 1605 | (setq numpydoc-insert-examples-block nil)
|
1575 | 1606 | (setq numpydoc-insert-return-without-typehint t)
|
1576 |
| - :bind (:map python-mode-map |
| 1607 | + :bind (:map python-ts-mode-map |
1577 | 1608 | ("s-SPC" . numpydoc-generate)))
|
1578 | 1609 |
|
1579 | 1610 | ;; CMake
|
@@ -1854,9 +1885,7 @@ that."
|
1854 | 1885 | ;; (use-package org-pdftools
|
1855 | 1886 | ;; :hook (org-mode . org-pdftools-setup-link))
|
1856 | 1887 |
|
1857 |
| -(use-package epresent |
1858 |
| - :straight |
1859 |
| - (:host github :repo "eschulte/epresent")) |
| 1888 | + |
1860 | 1889 |
|
1861 | 1890 | (define-minor-mode hidden-mode-line-mode
|
1862 | 1891 | "Minor mode to hide the mode-line in the current buffer."
|
@@ -1964,7 +1993,7 @@ that."
|
1964 | 1993 |
|
1965 | 1994 |
|
1966 | 1995 |
|
1967 |
| -(setq org-format-latex-options (plist-put org-format-latex-options :scale 3)) |
| 1996 | +(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.5)) |
1968 | 1997 | (setq org-babel-clojure-backend 'cider)
|
1969 | 1998 | (setq org-src-tab-acts-natively t)
|
1970 | 1999 | (setq org-src-fontify-natively t)
|
@@ -2403,7 +2432,7 @@ are null."
|
2403 | 2432 |
|
2404 | 2433 | ;; Set default font
|
2405 | 2434 | (set-face-attribute 'default nil
|
2406 |
| - :family "Hack" |
| 2435 | + :family "Hack Nerd Font" |
2407 | 2436 | :height 120
|
2408 | 2437 | :weight 'normal
|
2409 | 2438 | :width 'normal)
|
@@ -2433,11 +2462,11 @@ are null."
|
2433 | 2462 | ;; Human Dired
|
2434 | 2463 | (setq dired-listing-switches "-alFh")
|
2435 | 2464 | (evil-ex-define-cmd "W" 'evil-write)
|
2436 |
| - |
2437 | 2465 | ;; images?
|
2438 | 2466 | (setq image-types '(xpm imagemagick pbm pgm ppm gif tiff png jpeg))
|
2439 | 2467 | (setq evil-shift-width 4)
|
2440 | 2468 | (setq-default evil-shift-width 4)
|
| 2469 | +(setq image-types (cons 'svg image-types)) |
2441 | 2470 |
|
2442 | 2471 | (provide 'init)
|
2443 | 2472 | ;;; init.el ends here
|
0 commit comments