mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
feats(emacs): Respect xdg
This commit is contained in:
parent
c24e6de00a
commit
d504fe0aa0
6 changed files with 12 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ case "$(uname)" in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
git clone --depth 1 https://github.com/js0ny/rime_wanxiang_pro.git "$RIMEDIR"
|
git clone --depth 1 https://github.com/js0ny/rime_wanxiang_pro.git "$RIMEDIR"
|
||||||
cd ~/Library/Rime || exit
|
cd "$RIMEDIR" || exit
|
||||||
|
|
||||||
just init
|
just init
|
||||||
# just install_rime
|
# just install_rime
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
# https://github.com/microsoft/WSL/issues/11261
|
# https://github.com/microsoft/WSL/issues/11261
|
||||||
|
# ~/.config/systemd/user/symlink-wayland-socket.service
|
||||||
|
# Usage:
|
||||||
|
#
|
||||||
# Cannot use GUI apps/tools as Wayland socket doesn't exist in `XDG_RUNTIME_DIR`
|
# Cannot use GUI apps/tools as Wayland socket doesn't exist in `XDG_RUNTIME_DIR`
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
|
|
|
||||||
1
tools/emacs.d/.gitignore
vendored
1
tools/emacs.d/.gitignore
vendored
|
|
@ -19,6 +19,7 @@ tramp
|
||||||
|
|
||||||
recentf
|
recentf
|
||||||
custom.el
|
custom.el
|
||||||
|
.custom.el
|
||||||
|
|
||||||
.org-id-locations
|
.org-id-locations
|
||||||
bookmarks
|
bookmarks
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@
|
||||||
(setq use-short-answers t)
|
(setq use-short-answers t)
|
||||||
|
|
||||||
(require 'recentf)
|
(require 'recentf)
|
||||||
|
(setq recentf-save-file (expand-file-name "recentf" user-emacs-data))
|
||||||
(recentf-mode 1)
|
(recentf-mode 1)
|
||||||
|
|
||||||
;; Disable topbars
|
;; Disable topbars
|
||||||
|
|
@ -68,6 +69,9 @@
|
||||||
kept-old-versions 2 ; 保留的旧版本数量
|
kept-old-versions 2 ; 保留的旧版本数量
|
||||||
version-control t) ; 使用版本号
|
version-control t) ; 使用版本号
|
||||||
|
|
||||||
|
(setq transient-history-file (expand-file-name "transient/history.el" user-emacs-data))
|
||||||
|
(setq transient-values-file (expand-file-name "transient/values.el" user-emacs-data))
|
||||||
|
(setq transient-levels-file (expand-file-name "transient/levels.el" user-emacs-data))
|
||||||
|
|
||||||
;; Export module
|
;; Export module
|
||||||
(provide 'init-basic)
|
(provide 'init-basic)
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,8 @@
|
||||||
("C-x t C-t" . treemacs-find-file)
|
("C-x t C-t" . treemacs-find-file)
|
||||||
("C-x t M-t" . treemacs-find-tag)
|
("C-x t M-t" . treemacs-find-tag)
|
||||||
)
|
)
|
||||||
|
:config
|
||||||
|
(setq treemacs-persist-file (expand-file-name "treemacs-persist" user-emacs-data))
|
||||||
)
|
)
|
||||||
|
|
||||||
(use-package treemacs-evil
|
(use-package treemacs-evil
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@
|
||||||
(setq org-hide-emphasis-markers t)
|
(setq org-hide-emphasis-markers t)
|
||||||
(setq org-directory "~/OrgFiles/")
|
(setq org-directory "~/OrgFiles/")
|
||||||
(setq org-agenda-files (list (concat org-directory "tasks/")))
|
(setq org-agenda-files (list (concat org-directory "tasks/")))
|
||||||
|
(setq org-persist-directory (expand-file-name "org-persist" user-emacs-data))
|
||||||
(setq org-pretty-entities t)
|
(setq org-pretty-entities t)
|
||||||
(setq org-src-fontify-natively t)
|
(setq org-src-fontify-natively t)
|
||||||
(setq org-src-tab-acts-natively t) ; Use TAB to indent inside source block
|
(setq org-src-tab-acts-natively t) ; Use TAB to indent inside source block
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue