Sync from Windows

This commit is contained in:
js0ny 2025-03-07 15:02:52 +00:00
parent 85ac355294
commit 5593edde3a
8 changed files with 75 additions and 11 deletions

View file

@ -4,3 +4,8 @@ REG ADD "HKEY_CURRENT_USER\Control Panel\Accessibility\StickyKeys" /v "Flags" /t
# Disable Hyper+Keys to open Office apps
REG ADD HKCU\Software\Classes\ms-officeapp\Shell\Open\Command /t REG_SZ /d rundll32
# Disable DOS 8.3 file name creation
sudo fsutil 8dot3name set 1
# Delete all known DOS 8.3 file name
fsutil 8dot3name strip /s /v C:\

View file

@ -0,0 +1,13 @@
# https://github.com/microsoft/WSL/issues/11261
# Cannot use GUI apps/tools as Wayland socket doesn't exist in `XDG_RUNTIME_DIR`
[Unit]
Description=Symlink Wayland socket to XDG_RUNTIME_DIR
[Service]
Type=oneshot
ExecStart=/usr/bin/ln -s /mnt/wslg/runtime-dir/wayland-0 $XDG_RUNTIME_DIR
ExecStart=/usr/bin/ln -s /mnt/wslg/runtime-dir/wayland-0.lock $XDG_RUNTIME_DIR
[Install]
WantedBy=default.target

View file

@ -55,7 +55,7 @@
;; This determines the style of line numbers in effect. If set to `nil', line
;; numbers are disabled. For relative line numbers, set this to `relative'.
(setq display-line-numbers t)
(setq display-line-numbers-type 'relative)
(setq display-line-numbers-type 'visual)
@ -93,6 +93,18 @@
;; they are implemented.
(add-to-list 'load-path (expand-file-name "lisp" doom-user-dir))
(setq doom-local-dir (expand-file-name "emacs" (getenv "XDG_DATA_HOME")))
(setq doom-data-dir (expand-file-name "etc" doom-local-dir))
(after! recentf
(setq recentf-max-saved-items 200)
(add-to-list 'recentf-exclude "\\.revive$")
(add-to-list 'recentf-exclude "\\.windows$")
(add-to-list 'recentf-exclude "\\.#.+$")
(add-to-list 'recentf-exclude "^/tmp/")
(add-to-list 'recentf-exclude "COMMIT_EDITMSG\\'")
)[1][2]
(after! wakatime-mode
@ -119,11 +131,13 @@
)
(use-package! rime
(if (not (eq system-type 'windows-nt))
(use-package! rime
:config
(setq default-input-method "rime")
(add-hook! (org-mode markdown-mode) (activate-input-method default-input-method))
)
(setq rime-user-data-dir (expand-file-name "emacs-rime" (getenv "XDG_CONFIG_HOME")))
))
(load! "calendar.el")

View file

@ -8,11 +8,18 @@
(require 'org-pomodoro)
;; Variables
(defcustom org-pomodoro-music-player-command "playerctl"
(defcustom org-pomodoro-music-player-command
(cond
((eq system-type 'windows-nt) "clmcontrol")
((eq system-type 'darwin) "nowplaying-cli")
((eq system-type 'gnu/linux) "playerctl")
(t "playerctl"))
"Command to control the music player."
:type 'string
:group 'org-pomodoro)
(defcustom org-pomodoro-music-player-args nil
"Arguments to pass to the music player command."
:type '(repeat string)

View file

@ -1,4 +1,4 @@
;; If you use `org' and don't want your org files in the default location below,
;; If use `org' and don't want your org files in the default location below,
;; change `org-directory'. It must be set before org loads!
(setq org-directory "~/OrgFiles/")
;; (setq org-roam-directory "~/OrgFiles/roam/")
@ -29,6 +29,14 @@
(setq org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "WAIT(w@/!)" "|" "DONE(d@/!)" "CANCELLED(c@)")
))
(setq org-todo-keyword-faces
'(("TODO" . (:foreground "red" :weight bold :background "yellow"))
("NEXT" . (:foreground "blue" :weight bold :background "lightgray"))
("WAIT" . (:foreground "orange" :weight bold))
("DONE" . (:foreground "grey" :weight bold :italic t))
("CANCELLED" . (:foreground "grey" :weight bold))
))
;; Keymaps
(map! :map org-mode-map
:desc "Bold with ZWS" "C-c b" (lambda () (interactive) (my/insert-emphasis-with-zws ?*))
@ -196,7 +204,7 @@
;;; org-babel
(if (bound-and-true-p ISMAC)
(if (not (eq system-type 'gnu/linux))
(setq org-babel-C-compiler "clang"))

View file

@ -21,3 +21,17 @@ set --export PATH $BUN_INSTALL/bin $PATH
fish_add_path "$HOME/.moon/bin"
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
if test -f /home/js0ny/.local/anaconda3/bin/conda
eval /home/js0ny/.local/anaconda3/bin/conda "shell.fish" "hook" $argv | source
else
if test -f "/home/js0ny/.local/anaconda3/etc/fish/conf.d/conda.fish"
. "/home/js0ny/.local/anaconda3/etc/fish/conf.d/conda.fish"
else
set -x PATH "/home/js0ny/.local/anaconda3/bin" $PATH
end
end
# <<< conda initialize <<<

View file

@ -45,4 +45,7 @@ return {
-- { "<leader>gg", "<cmd>LazyGit<cr>", desc = "LazyGit" },
-- },
-- },
{
"NeogitOrg/neogit"
}
}

View file

@ -23,8 +23,8 @@
"ui_font_size": 16,
"buffer_font_size": null,
"theme": {
"mode": "dark",
"light": "Catppuccin Latte",
"mode": "system",
"light": "Rosé Pine Dawn",
"dark": "Catppuccin Mocha"
},
"relative_line_numbers": true,