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)))
|
||||||
|
|
||||||
|
|||||||
@@ -22,9 +22,9 @@
|
|||||||
|
|
||||||
|
|
||||||
(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
|
||||||
|
|||||||
@@ -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