Update
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -8,6 +8,7 @@
|
|||||||
/projects
|
/projects
|
||||||
/bookmarks
|
/bookmarks
|
||||||
|
|
||||||
|
rime
|
||||||
*~
|
*~
|
||||||
*.*~
|
*.*~
|
||||||
\#*
|
\#*
|
||||||
@@ -57,4 +58,5 @@ tabsession.el
|
|||||||
/persp-confs/
|
/persp-confs/
|
||||||
/tree-sitter/
|
/tree-sitter/
|
||||||
/url/
|
/url/
|
||||||
|
/undo-fu-session/
|
||||||
/..emacs.d-tabspaces-session.el
|
/..emacs.d-tabspaces-session.el
|
||||||
|
|||||||
1
init.el
1
init.el
@@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
(require 'init-utils)
|
(require 'init-utils)
|
||||||
(require 'init-completion)
|
(require 'init-completion)
|
||||||
|
(require 'init-input)
|
||||||
|
|
||||||
(require 'init-edit)
|
(require 'init-edit)
|
||||||
(require 'init-window)
|
(require 'init-window)
|
||||||
|
|||||||
@@ -45,9 +45,10 @@
|
|||||||
:ensure nil
|
:ensure nil
|
||||||
:hook (elpaca-after-init . show-paren-mode))
|
:hook (elpaca-after-init . show-paren-mode))
|
||||||
|
|
||||||
(setq-default show-trailing-whitespace t)
|
;; Show trailing whitespace only in prog-mode and text-mode
|
||||||
|
(add-hook 'prog-mode-hook (lambda () (setq show-trailing-whitespace t)))
|
||||||
|
(add-hook 'text-mode-hook (lambda () (setq show-trailing-whitespace t)))
|
||||||
|
|
||||||
(recentf-mode 1)
|
|
||||||
(use-package recentf
|
(use-package recentf
|
||||||
:ensure nil
|
:ensure nil
|
||||||
:hook (elpaca-after-init . recentf-mode)
|
:hook (elpaca-after-init . recentf-mode)
|
||||||
@@ -129,7 +130,7 @@
|
|||||||
(lambda (button)
|
(lambda (button)
|
||||||
(helpful-variable (button-get button 'apropos-symbol))))))))
|
(helpful-variable (button-get button 'apropos-symbol))))))))
|
||||||
|
|
||||||
(setq auto-save-default nil)
|
(setq-default auto-save-default nil)
|
||||||
;; (setq auto-save-file-name-transforms
|
;; (setq auto-save-file-name-transforms
|
||||||
;; `((".*" ,(concat user-emacs-directory "auto-save/") t)))
|
;; `((".*" ,(concat user-emacs-directory "auto-save/") t)))
|
||||||
|
|
||||||
|
|||||||
@@ -15,16 +15,16 @@
|
|||||||
;; ("terminfo/65" "terminfo/65/*")
|
;; ("terminfo/65" "terminfo/65/*")
|
||||||
;; ("integration" "integration/*")
|
;; ("integration" "integration/*")
|
||||||
;; (:exclude ".dir-locals.el" "*-tests.el")))
|
;; (:exclude ".dir-locals.el" "*-tests.el")))
|
||||||
;; :config
|
;; :config
|
||||||
;; )
|
;; )
|
||||||
|
|
||||||
(use-package vterm)
|
(use-package vterm)
|
||||||
|
|
||||||
|
|
||||||
(use-package vterm-toggle
|
(use-package vterm-toggle
|
||||||
:bind ("C-\\" . vterm-toggle)
|
:bind ("C-`" . vterm-toggle)
|
||||||
:config
|
:config
|
||||||
(define-key vterm-mode-map (kbd "C-\\") #'vterm-toggle))
|
(define-key vterm-mode-map (kbd "C-`") #'vterm-toggle))
|
||||||
|
|
||||||
(use-package editorconfig
|
(use-package editorconfig
|
||||||
:diminish
|
:diminish
|
||||||
|
|||||||
@@ -22,13 +22,13 @@
|
|||||||
;; whitespace in between, e.g. ()()(). Insert whitespace if
|
;; whitespace in between, e.g. ()()(). Insert whitespace if
|
||||||
;; genuinely want to start a new form in the middle of a word.
|
;; genuinely want to start a new form in the middle of a word.
|
||||||
:unless '(sp-point-before-word-p sp-point-before-same-p)))
|
:unless '(sp-point-before-word-p sp-point-before-same-p)))
|
||||||
|
|
||||||
(sp-local-pair sp-lisp-modes "(" ")" :unless '(:rem sp-point-before-same-p))
|
(sp-local-pair sp-lisp-modes "(" ")" :unless '(:rem sp-point-before-same-p))
|
||||||
|
|
||||||
;; Don't do square-bracket space-expansion where it doesn't make sense to
|
;; Don't do square-bracket space-expansion where it doesn't make sense to
|
||||||
(sp-local-pair '(emacs-lisp-mode org-mode markdown-mode markdown-ts-mode gfm-mode)
|
(sp-local-pair '(emacs-lisp-mode org-mode markdown-mode markdown-ts-mode gfm-mode)
|
||||||
"[" nil :post-handlers '(:rem ("| " "SPC")))
|
"[" nil :post-handlers '(:rem ("| " "SPC")))
|
||||||
|
|
||||||
;; resolve conflict with hungry-delete
|
;; resolve conflict with hungry-delete
|
||||||
(defadvice hungry-delete-backward (before sp-delete-pair-advice activate) (save-match-data (sp-delete-pair (ad-get-arg 0)))))
|
(defadvice hungry-delete-backward (before sp-delete-pair-advice activate) (save-match-data (sp-delete-pair (ad-get-arg 0)))))
|
||||||
|
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
:init (setq hungry-delete-chars-to-skip " \t\f\v"
|
:init (setq hungry-delete-chars-to-skip " \t\f\v"
|
||||||
hungry-delete-except-modes
|
hungry-delete-except-modes
|
||||||
'(help-mode minibuffer-mode minibuffer-inactive-mode calc-mode)))
|
'(help-mode minibuffer-mode minibuffer-inactive-mode calc-mode)))
|
||||||
|
|
||||||
(use-package abbrev
|
(use-package abbrev
|
||||||
:diminish
|
:diminish
|
||||||
:ensure nil
|
:ensure nil
|
||||||
@@ -105,6 +105,10 @@
|
|||||||
:bind ("C-x u" . vundo)
|
:bind ("C-x u" . vundo)
|
||||||
:config (setq vundo-glyph-alist vundo-unicode-symbols))
|
:config (setq vundo-glyph-alist vundo-unicode-symbols))
|
||||||
|
|
||||||
|
;; Remember undo history
|
||||||
|
(use-package undo-fu-session
|
||||||
|
:hook (elpaca-after-init . undo-fu-session-global-mode))
|
||||||
|
|
||||||
(use-package olivetti
|
(use-package olivetti
|
||||||
:hook org-mode
|
:hook org-mode
|
||||||
:custom
|
:custom
|
||||||
|
|||||||
9
lisp/init-input.el
Normal file
9
lisp/init-input.el
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
;; -*- lexical-binding: t;-*-
|
||||||
|
|
||||||
|
(use-package rime
|
||||||
|
:custom
|
||||||
|
(default-input-method "rime")
|
||||||
|
(rime-librime-root "/opt/homebrew")
|
||||||
|
(rime-emacs-module-header-root "~/build-emacs-for-macos/builds/Emacs.app/Contents/Resources/include/"))
|
||||||
|
|
||||||
|
(provide 'init-input)
|
||||||
@@ -28,14 +28,12 @@
|
|||||||
(mapc #'disable-theme custom-enabled-themes)
|
(mapc #'disable-theme custom-enabled-themes)
|
||||||
(defun doric-load-random ()
|
(defun doric-load-random ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(let* ((themes '(doric-plum
|
(let* ((themes '(doric-fire
|
||||||
doric-fire
|
|
||||||
doric-oak
|
doric-oak
|
||||||
doric-jade
|
doric-jade
|
||||||
doric-wind
|
doric-wind
|
||||||
doric-beach
|
doric-beach
|
||||||
doric-earth
|
doric-earth
|
||||||
doric-water
|
|
||||||
doric-valley))
|
doric-valley))
|
||||||
(loaded (seq-random-elt themes)))
|
(loaded (seq-random-elt themes)))
|
||||||
(load-theme loaded :no-confirm)))
|
(load-theme loaded :no-confirm)))
|
||||||
|
|||||||
5
snippets/emacs-lisp-mode/provide
Normal file
5
snippets/emacs-lisp-mode/provide
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: provide
|
||||||
|
# key: provide
|
||||||
|
# --
|
||||||
|
(provide '${1:`(file-name-sans-extension (file-name-nondirectory (buffer-file-name)))`})$0
|
||||||
Reference in New Issue
Block a user