Compare commits
2 Commits
28b3334925
...
6b017648ef
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6b017648ef | ||
|
|
a56b36b3f5 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -42,6 +42,7 @@ history
|
||||
# generated by elisp packages at root
|
||||
/.local/
|
||||
/.cask/
|
||||
/tabspaces/
|
||||
/auto/
|
||||
/auto-save-list/
|
||||
/cask/
|
||||
|
||||
@@ -38,12 +38,13 @@
|
||||
;; Faster to disable these here (before they've been initialized)
|
||||
(push '(menu-bar-lines . 0) default-frame-alist)
|
||||
(push '(tool-bar-lines . 0) default-frame-alist)
|
||||
(push '(vertical-scroll-bars . 0) default-frame-alist)
|
||||
(push '(vertical-scroll-bars) default-frame-alist)
|
||||
(push '(horizontal-scroll-bars) default-frame-alist)
|
||||
(when (featurep 'ns)
|
||||
(push '(ns-transparent-titlebar . t) default-frame-alist))
|
||||
;; (push '(ns-appearance . light) default-frame-alist))
|
||||
;; (push '(ns-appearance . light) default-frame-alist))
|
||||
|
||||
;; Prevent flash of unstyled mode line
|
||||
;; (setq mode-line-format nil)
|
||||
(setq mode-line-format nil)
|
||||
|
||||
(provide 'early-init)
|
||||
|
||||
16
history
16
history
@@ -1,16 +0,0 @@
|
||||
;; -*- mode: emacs-lisp; lexical-binding: t; coding: utf-8-emacs-unix -*-
|
||||
;; Minibuffer history file, automatically generated by ‘savehist’.
|
||||
|
||||
(setq savehist-minibuffer-history-variables '(minibuffer-history consult--line-history rg-files-history rg-pattern-history file-name-history extended-command-history buffer-name-history))
|
||||
(setq minibuffer-history '("cmake-mode MELPA"))
|
||||
(setq consult--line-history '("ss"))
|
||||
(setq rg-files-history '("elisp"))
|
||||
(setq rg-pattern-history '("ss"))
|
||||
(setq file-name-history '("~/.emacs.d/init.el" "~/.emacs.d/lisp/" "~/.emacs.d/lisp/init-coding.el" "~/.emacs.d/lisp/init-better-default.el" "~/.emacs.d/lisp/init-coding.el" "~/.emacs.d/lisp/init-shell.el" "~/.emacs.d/init.el" "~/.emacs.d/lisp/init-snippet.el" "~/.emacs.d/lisp/init-ui.el" "~/.emacs.d/lisp/init-vcs.el" "~/.emacs.d/lisp/init-workspace.el" "~/.emacs.d/early-init.el" "~/.emacs.d/lisp/init-edit.el" "~/.emacs.d/lisp/init-utils.el" "~/uni/Seminars/Algebraic Geometry/exer.tex" "~/.emacs.d/lisp/init-completion.el" "~/.emacs.d/lisp/init-eglot.el" "~/org/roam/20260222193638-ring.org" "~/org/yunnan.org" "~/org/workout.org" "~/org/todo.org" "~/org/notes.org" "~/org/learn-haskell.org" "~/org/diary.org" "~/org/roam/20260105223044-ideal_of_ring.org" "~/Library/texmf/tex/latex/local/elegantbook.cls" "~/.emacs.d/auctex/elegantbook.el" "~/Library/Rime/wubi091.dict.yaml" "~/Library/Rime/wubi091.schema.yaml" "~/.emacs.d/snippets/LaTeX-mode/in" "~/.emacs.d/snippets/LaTeX-mode/not in" "~/Library/Rime/pinyin_simp.txt" "~/.emacs.d/rime/user.yaml" "~/.emacs.d/snippets/LaTeX-mode/sqrt" "~/.emacs.d/bookmarks.eld" "~/org/roam/20260322143810-noetherian_topological_space_is_compact.org" "~/.config/aerospace/aerospace.toml" "~/.config/sketchybar/plugins/current_space.sh" "~/.config/sketchybar/sketchybarrc" "~/.config/sketchybar/plugins/aerospace.sh" "~/.emacs.d/lisp/init-org.el" "~/.emacs.d/elpaca/builds/org/org-loaddefs.el" "~/.emacs.d/lisp/init-tex.el" "~/uni/undergrad/26s1/Geometry/ass1/main.tex" "~/.emacs.d/snippets/LaTeX-mode/.yas-ignore-filenames-as-triggers" "~/uni/undergrad/26s1/Geometry/" "~/uni/undergrad/26s1/PFi/main.tex" "~/.emacs.d/snippets/LaTeX-mode/chastar.yasnippet" "~/.emacs.d/snippets/LaTeX-mode/star" "~/.emacs.d/snippets/LaTeX-mode/substar.yasnippet" "~/.emacs.d/snippets/LaTeX-mode/Display Math" "~/.emacs.d/snippets/LaTeX-mode/implied by" "~/.emacs.d/snippets/LaTeX-mode/less or equal" "~/.emacs.d/snippets/LaTeX-mode/lesser lesser" "~/.emacs.d/snippets/LaTeX-mode/greater or equal" "~/.emacs.d/snippets/LaTeX-mode/lrangle" "~/.emacs.d/eshell/alias" "~/.emacs.d/.gitignore" "~/.latexmkrc" "~/.emacs.d/lisp/init-window.el" "~/uni/undergrad/26s1/.projectile" "~/.emacs.d/snippets/LaTeX-mode/bigop.yasnippet" "~/org/roam/20260222194140-category_theory.org" "~/uni/Seminars/Representation theory/.projectile" "~/uni/Seminars/Representation theory/main.tex" "~/.emacs.d/snippets/LaTeX-mode/odot" "~/.emacs.d/snippets/LaTeX-mode/supset" "~/Library/texmf/tex/latex/local/auto/elegantbook.el" "~/uni/Seminars/Algebraic Geometry/auto/exer.el" "~/.config/nvim/LuaSnip/tex/math-commands.lua" "~/.emacs.d/snippets/LaTeX-mode/supseteq" "~/uni/Seminars/Representation theory/auto/main.el" "~/.emacs.d/auctex/auto/elegantbook.el" "~/org/roam/20260307170815-the_first_isomorphism_theorem.org" "~/org/roam/20251208162138-eu4_chinese_on_linux.org" "~/org/roam/20251207033411-quant.org" "~/org/roam/20251117171745-emacs.org" "~/.emacs.d/README.org" "~/.cache/org-persist/d8/df010c-12af-4345-96ea-38c574c74b6f-782ac370c3e966153f81b05909bf82d8.png" "~/org/todo.org_archive" "~/build-emacs-for-macos/flake.nix" "~/build-emacs-for-macos/go.mod" "~/build-emacs-for-macos/Brewfile" "~/.emacs.d/lisp/init-hydra.el" "~/docker_compose/yama.toml" "~/.emacs.d/snippets/LaTeX-mode/cap" "~/.emacs.d/snippets/LaTeX-mode/cup" "~/.emacs.d/snippets/LaTeX-mode/template" "~/build-emacs-for-macos/builds/Emacs.app/Contents/Resources/lisp/loaddefs.el.gz" "~/uni/undergrad/25s1/VCA/Notes/Vector-Calculus-Note.tex" "~/.emacs.d/lisp/init-dashboard.el"))
|
||||
(setq extended-command-history '("easysession-reset" "elpaca-browse" "savehist-mode" "xref-find-definitions" "elisp-enable-lexical-binding" "elpaca-browse" "transient-posframe-mode" "elpaca-browse" "elisp-enable-lexical-binding" "transient-posframe-mode" "elpaca-browse" "proced" "elpaca-browse" "eldoc-mode" "benchmark-init/show-durations-tabulated"))
|
||||
(setq buffer-name-history '("*Proced*"))
|
||||
(setq projectile-project-command-history '#s(hash-table test equal))
|
||||
(setq mark-ring 'nil)
|
||||
(setq global-mark-ring 'nil)
|
||||
(setq search-ring '(#("cod" 0 3 (isearch-case-fold-search t isearch-regexp-function nil)) #("recentf" 0 7 (isearch-case-fold-search t isearch-regexp-function nil)) #("doom-mode" 0 9 (isearch-case-fold-search t isearch-regexp-function nil)) #("easy" 0 4 (isearch-case-fold-search t isearch-regexp-function nil)) #("use-package rg" 0 14 (isearch-case-fold-search t isearch-regexp-function nil))))
|
||||
(setq regexp-search-ring 'nil)
|
||||
@@ -28,14 +28,12 @@
|
||||
circe-mode-hook
|
||||
help-mode-hook
|
||||
gud-mode-hook
|
||||
treemacs-mode-hook
|
||||
treemacs-mode-hook
|
||||
org-mode-hook
|
||||
vterm-mode-hook))
|
||||
(add-hook mode (lambda () (display-line-numbers-mode -1))))
|
||||
(setq display-line-numbers-type 'relative)
|
||||
)
|
||||
(column-number-mode 1)
|
||||
(scroll-bar-mode -1)
|
||||
|
||||
;; (use-package delete-trailing
|
||||
;; :ensure nil
|
||||
@@ -63,11 +61,11 @@
|
||||
:custom
|
||||
(recentf-max-saved-items 500)
|
||||
(recentf-exclude
|
||||
'("\\.?cache" ".cask" "url" "COMMIT_EDITMSG\\'" "bookmarks"
|
||||
"\\.\\(?:gz\\|gif\\|svg\\|png\\|jpe?g\\|bmp\\|xpm\\)$"
|
||||
"\\.?ido\\.last$" "\\.revive$" "/G?TAGS$" "/.elfeed/"
|
||||
"^/tmp/" "^/var/folders/.+$" "^/ssh:" "/persp-confs/"
|
||||
(lambda (file) (file-in-directory-p file package-user-dir))))
|
||||
'("\\.?cache" ".cask" "url" "COMMIT_EDITMSG\\'" "bookmarks"
|
||||
"\\.\\(?:gz\\|gif\\|svg\\|png\\|jpe?g\\|bmp\\|xpm\\)$"
|
||||
"\\.?ido\\.last$" "\\.revive$" "/G?TAGS$" "/.elfeed/"
|
||||
"^/tmp/" "^/var/folders/.+$" "^/ssh:" "/persp-confs/"
|
||||
(lambda (file) (file-in-directory-p file package-user-dir))))
|
||||
:config
|
||||
(push (expand-file-name recentf-save-file) recentf-exclude)
|
||||
(add-to-list 'recentf-filename-handlers #'abbreviate-file-name)
|
||||
@@ -106,8 +104,8 @@
|
||||
password-cache-expiry nil)
|
||||
|
||||
(setq-default delete-by-moving-to-trash t
|
||||
x-stretch-cursor t
|
||||
window-combination-resize t)
|
||||
x-stretch-cursor t
|
||||
window-combination-resize t)
|
||||
|
||||
(define-key global-map (kbd "C-<wheel-up>") nil)
|
||||
(define-key global-map (kbd "C-<wheel-down>") nil)
|
||||
@@ -135,7 +133,7 @@
|
||||
(use-package ultra-scroll
|
||||
:init
|
||||
(setq scroll-conservatively 3
|
||||
scroll-margin 0)
|
||||
scroll-margin 0)
|
||||
:hook (elpaca-after-init . ultra-scroll-mode))
|
||||
|
||||
(use-package helpful
|
||||
|
||||
@@ -52,9 +52,9 @@
|
||||
(use-package vertico
|
||||
:custom (vertico-count 15)
|
||||
:bind (:map vertico-map
|
||||
("RET" . vertico-directory-enter)
|
||||
("DEL" . vertico-directory-delete-char)
|
||||
("M-DEL" . vertico-directory-delete-word))
|
||||
("RET" . vertico-directory-enter)
|
||||
("DEL" . vertico-directory-delete-char)
|
||||
("M-DEL" . vertico-directory-delete-word))
|
||||
:hook (elpaca-after-init . vertico-mode)
|
||||
:hook (rfn-eshadow-update-overlay . vertico-directory-tidy))
|
||||
|
||||
@@ -112,9 +112,9 @@
|
||||
;; Consulting completing-read
|
||||
(use-package consult
|
||||
:bind (("C-." . consult-imenu)
|
||||
("C-c T" . consult-theme)
|
||||
("C-c T" . consult-theme)
|
||||
|
||||
([remap Info-search] . consult-info)
|
||||
([remap Info-search] . consult-info)
|
||||
;; ([remap isearch-forward] . consult-line)
|
||||
([remap recentf-open-files] . consult-recent-file)
|
||||
|
||||
@@ -140,7 +140,7 @@
|
||||
("M-g I" . consult-imenu-multi)
|
||||
|
||||
;; M-g bindings in `search-map'
|
||||
("s-f" . consult-line)
|
||||
("s-f" . consult-line)
|
||||
("M-g d" . consult-find) ;; Alternative: consult-fd
|
||||
("M-g c" . consult-locate)
|
||||
("M-g G" . consult-git-grep)
|
||||
@@ -149,8 +149,8 @@
|
||||
("M-g L" . consult-line-multi)
|
||||
("M-g k" . consult-keep-lines)
|
||||
("M-g u" . consult-focus-lines)
|
||||
("C-x C-r" . consult-recent-file)
|
||||
("C-x B" . consult-buffer)
|
||||
("C-x C-r" . consult-recent-file)
|
||||
("C-x b" . consult-buffer)
|
||||
|
||||
("M-g e" . consult-isearch-history)
|
||||
:map isearch-mode-map
|
||||
@@ -223,7 +223,7 @@
|
||||
|
||||
(use-package embark-consult
|
||||
:bind (:map minibuffer-mode-map
|
||||
("C-c C-o" . embark-export))
|
||||
("C-c C-o" . embark-export))
|
||||
:hook (embark-collect-mode . consult-preview-at-point-mode))
|
||||
|
||||
;; Auto completion
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
(yas-expand)))))
|
||||
|
||||
;; Collection of yasnippet snippets
|
||||
(use-package yasnippet-snippets)
|
||||
;; (use-package yasnippet-snippets)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
:bind ("C-h M-m" . which-key-show-major-mode)
|
||||
:hook (elpaca-after-init . which-key-mode)
|
||||
:init (setq which-key-max-description-length 30
|
||||
which-key-idle-delay 0.5
|
||||
which-key-idle-delay 0.5
|
||||
which-key-lighter nil
|
||||
which-key-show-remaining-keys t)
|
||||
:config
|
||||
@@ -51,9 +51,9 @@
|
||||
(use-package rg
|
||||
:hook (elpaca-after-init . rg-enable-default-bindings)
|
||||
:bind (:map rg-global-map
|
||||
("c" . rg-dwim-current-dir)
|
||||
("f" . rg-dwim-current-file)
|
||||
("m" . rg-menu))
|
||||
("c" . rg-dwim-current-dir)
|
||||
("f" . rg-dwim-current-file)
|
||||
("m" . rg-menu))
|
||||
:init (setq rg-show-columns t)
|
||||
:config (add-to-list 'rg-custom-type-aliases '("tmpl" . "*.tmpl")))
|
||||
|
||||
@@ -61,6 +61,10 @@
|
||||
:config
|
||||
(pdf-tools-install))
|
||||
|
||||
(use-package saveplace-pdf-view
|
||||
:after pdf-tools
|
||||
:demand t)
|
||||
|
||||
;; (use-package keycast
|
||||
;; :hook (elpaca-after-init . keycast-mode-line-mode)
|
||||
;; :config
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
(use-package transient)
|
||||
|
||||
(use-package magit
|
||||
:defer t
|
||||
:bind (("C-c g" . magit-dispatch))
|
||||
:custom
|
||||
(magit-diff-refine-hunk t)
|
||||
|
||||
@@ -13,10 +13,10 @@
|
||||
(use-package ibuffer-projectile
|
||||
:config
|
||||
(add-hook 'ibuffer-hook
|
||||
(lambda ()
|
||||
(ibuffer-projectile-set-filter-groups)
|
||||
(unless (eq ibuffer-sorting-mode 'alphabetic)
|
||||
(ibuffer-do-sort-by-alphabetic)))))
|
||||
(lambda ()
|
||||
(ibuffer-projectile-set-filter-groups)
|
||||
(unless (eq ibuffer-sorting-mode 'alphabetic)
|
||||
(ibuffer-do-sort-by-alphabetic)))))
|
||||
|
||||
(use-package consult-projectile
|
||||
:bind (([remap projectile-find-file] . consult-projectile-find-file)
|
||||
@@ -25,34 +25,12 @@
|
||||
([remap projectile-switch-to-buffer] . consult-projectile-switch-to-buffer)
|
||||
([remap projectile-find-dir] . consult-projectile-find-dir)))
|
||||
|
||||
;; (use-package org-project-capture)
|
||||
|
||||
;; (use-package org-projectile
|
||||
;; :config
|
||||
;; (setq org-project-capture-default-backend
|
||||
;; (make-instance 'org-project-capture-projectile-backend)))
|
||||
|
||||
(global-set-key (kbd "C-x C-b") #'ibuffer)
|
||||
|
||||
;; (use-package beframe
|
||||
;; :hook elpaca-after-init
|
||||
;; :bind (("C-x b" . beframe-switch-buffer)
|
||||
;; ("C-x C-b" . beframe-buffer-menu)
|
||||
;; ("C-x f" . other-frame-prefix))
|
||||
;; :config
|
||||
;; (define-key global-map (kbd "C-c b") #'beframe-prefix-map))
|
||||
|
||||
|
||||
(use-package eyebrowse
|
||||
:hook elpaca-after-init
|
||||
:custom
|
||||
(eyebrowse-new-workspace t))
|
||||
|
||||
(use-package easysession
|
||||
:diminish
|
||||
:demand t
|
||||
;; :hook (elpaca-after-init easysession-scratch-mode)
|
||||
;; :hook (elpaca-after-init easysession-magit-mode)
|
||||
(eyebrowse-new-workspace t)
|
||||
:bind (("s-1" . eyebrowse-switch-to-window-config-1)
|
||||
("s-2" . eyebrowse-switch-to-window-config-2)
|
||||
("s-3" . eyebrowse-switch-to-window-config-3)
|
||||
@@ -60,15 +38,18 @@
|
||||
("s-5" . eyebrowse-switch-to-window-config-5)
|
||||
("s-6" . eyebrowse-switch-to-window-config-6)
|
||||
("s-7" . eyebrowse-switch-to-window-config-7)
|
||||
("s-8" . eyebrowse-switch-to-window-config-8))
|
||||
;; ("C-c C-s l" . easysession-switch-to)
|
||||
;; ("C-c C-s L" . easysession-switch-to-and-restore-geometry)
|
||||
;; ("C-c C-s s" . easysession-save)
|
||||
;; ("C-c C-s r" . easysession-rename)
|
||||
;; ("C-c C-s R" . easysession-reset)
|
||||
;; ("C-c C-s u" . easysession-unload)
|
||||
;; ("C-c C-s d" . easysession-delete))
|
||||
("s-8" . eyebrowse-switch-to-window-config-8)))
|
||||
|
||||
(use-package easysession
|
||||
:diminish
|
||||
:demand t
|
||||
:bind (("C-c C-s l" . easysession-switch-to)
|
||||
("C-c C-s L" . easysession-switch-to-and-restore-geometry)
|
||||
("C-c C-s s" . easysession-save)
|
||||
("C-c C-s r" . easysession-rename)
|
||||
("C-c C-s R" . easysession-reset)
|
||||
("C-c C-s u" . easysession-unload)
|
||||
("C-c C-s d" . easysession-delete))
|
||||
:custom
|
||||
(easysession-switch-to-save-session t)
|
||||
(easysession-switch-to-exclude-current nil)
|
||||
|
||||
Reference in New Issue
Block a user