this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Lots of random updates, mostly emacs+vscode

+244 -69
+2
.config/Code/User/custom.css
··· 1 1 .monaco-workbench .part>.content code, 2 2 .monaco-workbench .part>.content .tiw-metadata-value, 3 3 .monaco-workbench .part>.content .monaco-tokenized-source, 4 + .comment-form .review-thread-reply-button, 5 + .comment-form .view-lines, 4 6 .comment-body pre *, 5 7 .comment-body code *, 6 8 .comment-body .diff * {
+18 -20
.config/Code/User/extensions.txt
··· 4 4 Alpha4.jsonl@0.0.1 5 5 anseki.vscode-color@0.4.5 6 6 asvetliakov.vscode-neovim@0.0.97 7 - atlassian.atlascode@3.0.2 7 + atlassian.atlascode@3.0.3 8 8 attilabuti.brainfuck-syntax@0.0.1 9 9 BazelBuild.vscode-bazel@0.7.0 10 + bbenoist.QML@1.0.0 10 11 be5invis.vscode-custom-css@7.1.0 11 12 bierner.markdown-checkbox@0.4.0 12 - bierner.markdown-mermaid@1.17.7 13 + bierner.markdown-mermaid@1.18.0 13 14 bmalehorn.vscode-fish@1.0.33 14 15 bpruitt-goddard.mermaid-markdown-syntax-highlighting@1.5.1 15 16 codeout.vscode-junos@0.3.0 ··· 23 24 dunstontc.viml@0.1.7 24 25 eamodio.gitlens@13.4.0 25 26 emeraldwalk.RunOnSave@0.2.0 26 - GitHub.vscode-pull-request-github@0.60.0 27 + GitHub.vscode-pull-request-github@0.62.0 27 28 golang.go@0.38.0 28 29 Gruntfuggly.todo-tree@0.0.224 29 30 haskell.haskell@2.2.2 ··· 40 41 justusadam.language-haskell@3.6.0 41 42 korekontrol.saltstack@0.0.9 42 43 kumar-harsh.graphql-for-vscode@1.15.3 43 - LaurentTreguier.rpm-spec@0.3.2 44 44 llvm-vs-code-extensions.vscode-clangd@0.1.23 45 45 mariusschulz.yarn-lock-syntax@0.2.0 46 46 marko2276.yang@0.1.3 47 47 mattn.Lisp@0.1.12 48 - mechatroner.rainbow-csv@3.5.1 48 + mechatroner.rainbow-csv@3.6.0 49 49 moshfeu.compare-folders@0.22.3 50 50 ms-azuretools.vscode-docker@1.24.0 51 51 ms-dotnettools.vscode-dotnet-runtime@1.6.0 52 52 ms-python.isort@2022.8.0 53 - ms-python.python@2023.4.1 54 - ms-python.vscode-pylance@2023.3.20 55 - ms-toolsai.jupyter@2023.2.1200692131 53 + ms-python.python@2023.6.0 54 + ms-python.vscode-pylance@2023.4.10 55 + ms-toolsai.jupyter@2023.3.1000892223 56 56 ms-toolsai.jupyter-renderers@1.0.15 57 - ms-vscode-remote.remote-containers@0.282.0 57 + ms-vscode-remote.remote-containers@0.288.0 58 58 ms-vscode-remote.remote-ssh@0.98.0 59 59 ms-vscode-remote.remote-ssh-edit@0.84.0 60 - ms-vscode.azure-account@0.11.3 61 60 ms-vscode.cmake-tools@1.13.45 62 - ms-vscode.cpptools@1.14.4 61 + ms-vscode.cpptools@1.14.5 63 62 ms-vscode.hexeditor@1.9.11 64 63 ms-vscode.live-server@0.4.7 65 - ms-vscode.remote-explorer@0.2.0 66 - ms-vscode.vscode-serial-monitor@0.8.0 67 - ms-vscode.vscode-typescript-tslint-plugin@1.3.4 64 + ms-vscode.remote-explorer@0.4.0 65 + ms-vscode.vscode-serial-monitor@0.9.0 68 66 ms-vsliveshare.vsliveshare@1.0.5834 67 + naumovs.color-highlight@2.5.0 69 68 neilding.language-liquid@0.1.1 70 69 nico-castell.linux-desktop-file@0.0.21 71 70 NicolasVuillamy.vscode-groovy-lint@2.0.0 71 + pierre-payen.gdb-syntax@0.3.2 72 72 PolyMeilex.wgsl@0.1.14 73 73 raynigon.nginx-formatter@0.0.13 74 74 rebornix.ruby@0.28.1 ··· 77 77 redhat.vscode-yaml@1.12.2 78 78 ria.elastic@0.13.3 79 79 richie5um2.vscode-sort-json@1.20.0 80 - rioj7.command-variable@1.49.1 81 80 robocorp.robotframework-lsp@1.9.0 82 81 RReverser.llvm@0.1.1 83 - rust-lang.rust-analyzer@0.3.1443 82 + rust-lang.rust-analyzer@0.3.1463 84 83 ryanluker.vscode-coverage-gutters@2.10.4 85 84 samuelcolvin.jinjahtml@0.20.0 86 - sleistner.vscode-fileutils@3.10.0 85 + sleistner.vscode-fileutils@3.10.1 87 86 slevesque.shader@1.1.5 88 87 stevensona.shader-toy@0.10.15 89 - streetsidesoftware.code-spell-checker@2.20.3 88 + streetsidesoftware.code-spell-checker@2.20.4 90 89 tamasfe.even-better-toml@0.19.0 91 - timonwong.shellcheck@0.29.4 90 + timonwong.shellcheck@0.31.1 92 91 trond-snekvik.gnu-mapfiles@1.1.0 93 92 twxs.cmake@0.0.17 94 93 Tyriar.sort-lines@1.9.1 ··· 105 104 xaver.clang-format@1.9.0 106 105 xoronic.pestfile@0.4.0 107 106 yy0931.gitconfig-lsp@0.9.3 108 - zhouronghui.propertylist@0.0.2 109 107 ZixuanWang.linkerscript@1.0.3 110 108 zxh404.vscode-proto3@0.5.5
+72 -4
.config/Code/User/keybindings.json
··· 212 212 { 213 213 "command": "workbench.action.tasks.test", 214 214 "key": "alt+cmd+t", 215 + "when": "!tasKRunning", 216 + }, 217 + { 218 + "command": "workbench.action.tasks.restartTask", 219 + "key": "alt+cmd+t", 220 + "when": "tasKRunning", 215 221 }, 216 222 { 217 223 "command": "workbench.action.terminal.focusNext", ··· 367 373 "key": "cmd+c", 368 374 "command": "vscode-neovim.send", 369 375 "when": "editorTextFocus && neovim.init && neovim.mode == 'visual'", 370 - "args": "\"+ygv", 376 + "args": "<C-C>", 371 377 }, 372 378 { 373 379 "key": "cmd+c", ··· 582 588 { 583 589 "key": "shift+j", 584 590 "command": "rust-analyzer.joinLines", 585 - "when": "editorTextFocus && (neovim.mode == 'normal' || neovim.mode = 'visual') && editorLangId == 'rust'" 591 + "when": "editorTextFocus && neovim.mode != 'insert' && editorLangId == 'rust'" 586 592 }, 587 593 { 588 594 "key": "shift+5", 589 595 "command": "rust-analyzer.matchingBrace", 590 - "when": "editorTextFocus && (neovim.mode == 'normal' || neovim.mode == 'visual') && editorLangId == 'rust'" 596 + "when": "editorTextFocus && neovim.mode != 'insert' && editorLangId == 'rust'" 591 597 }, 592 598 { 593 599 "key": "enter", ··· 831 837 // Many of these effectively just "undo" the default neovim bindings and 832 838 // restore the default VSCode behavior, since neovim uses ctrl keys so 833 839 // much. 840 + // 841 + // See also <https://github.com/codebling/vs-code-default-keybindings> 834 842 // ========================================================================= 835 843 { 836 844 "key": "ctrl+k ctrl+s", ··· 954 962 "when": "isLinux && terminalFocus" 955 963 }, 956 964 { 965 + "key": "shift+alt+f", 966 + "command": "editor.action.formatDocument", 967 + "when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor" 968 + }, 969 + { 970 + "key": "shift+alt+f", 971 + "command": "editor.action.formatDocument.none", 972 + "when": "editorTextFocus && !editorHasDocumentFormattingProvider && !editorReadonly" 973 + }, 974 + { 957 975 "key": "meta+v", 958 976 "command": "editor.action.clipboardPasteAction", 959 - "when": "isLinux && editorTextFocus && neovim.init && neovim.mode == 'insert'" 977 + "when": "isLinux && !editorTextFocus || editorTextFocus && neovim.init && neovim.mode == 'insert'" 960 978 }, 961 979 { 962 980 "key": "meta+v", 963 981 "command": "workbench.action.terminal.paste", 964 982 "when": "isLinux && terminalFocus" 965 983 }, 984 + { 985 + "key": "meta+c", 986 + "command": "editor.action.clipboardCopyAction", 987 + "when": "isLinux && !editorTextFocus || editorTextFocus && neovim.init && neovim.mode != 'visual'" 988 + }, 989 + { 990 + "key": "meta+a", 991 + "command": "editor.action.selectAll", 992 + "when": "isLinux" 993 + }, 994 + { 995 + "key": "ctrl+0", 996 + "command": "workbench.action.zoomReset", 997 + "when": "isLinux" 998 + }, 966 999 // sorta overkill, since selection normally copies but whatever 967 1000 { 968 1001 "key": "meta+c", ··· 988 1021 "key": "ctrl+shift+delete", 989 1022 "command": "deleteAllRight", 990 1023 "when": "textInputFocus" 1024 + }, 1025 + { 1026 + "key": "ctrl+shift+backspace", 1027 + "command": "deleteFile", 1028 + "when": "isLinux && explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus" 1029 + }, 1030 + { 1031 + "command": "workbench.action.tasks.test", 1032 + "key": "ctrl+alt+t", 1033 + "when": "isLinux && !taskRunning" 1034 + }, 1035 + { 1036 + "command": "workbench.action.tasks.restartTask", 1037 + "key": "ctrl+alt+t", 1038 + "when": "isLinux && taskRunning" 991 1039 }, 992 1040 // Terminal sequences. These are mainly movement-related but there are also a 993 1041 // few that are used for other things like ctrl-c, ctrl-l, etc. ··· 1056 1104 }, 1057 1105 "when": "isLinux && terminalFocus" 1058 1106 }, 1107 + { 1108 + "key": "alt+right", 1109 + "command": "-workbench.action.terminal.focusNextPane", 1110 + "when": "isLinux && terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported" 1111 + }, 1112 + { 1113 + "key": "alt+left", 1114 + "command": "-workbench.action.terminal.focusPreviousPane", 1115 + "when": "isLinux && terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported" 1116 + }, 1117 + { 1118 + "key": "ctrl+alt+right", 1119 + "command": "workbench.action.terminal.focusNextPane", 1120 + "when": "isLinux && terminalFocus" 1121 + }, 1122 + { 1123 + "key": "ctrl+alt+left", 1124 + "command": "workbench.action.terminal.focusPreviousPane", 1125 + "when": "isLinux && terminalFocus" 1126 + } 1059 1127 ]
+11 -5
.config/Code/User/settings.json
··· 152 152 "--background-index" 153 153 ], 154 154 "clangd.checkUpdates": true, 155 - "clangd.path": "/Users/ianchamberlain/Library/Application Support/Code/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/15.0.3/clangd_15.0.3/bin/clangd", 155 + "clangd.path": "/home/deck/.config/Code/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/15.0.6/clangd_15.0.6/bin/clangd", 156 156 "clangd.onConfigChanged": "restart", 157 157 158 - "cmake.cmakePath": "/usr/local/bin/cmake", 159 158 "cmake.configureOnOpen": false, 160 159 "cmake.configureOnEdit": false, 161 160 "cmake.skipConfigureIfCachePresent": true, ··· 283 282 "editor.semanticTokenColorCustomizations": { 284 283 "[Monokai]": { 285 284 "rules": { 286 - "variable.readonly.fileScope:cpp": "#AE81FF", 285 + "variable.readonly.static:c": "#AE81FF", 287 286 "variable.readonly.fileScope:c": "#AE81FF", 288 287 288 + "variable.readonly.static:cpp": "#AE81FF", 289 + "variable.readonly.classScope:cpp": "#AE81FF", 290 + "variable.readonly.fileScope:cpp": "#AE81FF", 291 + 289 292 "variable:dockerfile": "#FD971F", 290 293 "parameter:dockerfile": { 291 294 "fontStyle": "", ··· 515 518 "*.trycmd": "markdown", 516 519 "*.sublime-syntax": "yaml", 517 520 "duti": "gitignore", 521 + "*.gltf": "json", 518 522 }, 519 523 "files.exclude": { 520 524 "**/.cache/**": true, ··· 779 783 "rust-analyzer.cargo.buildScripts.enable": true, 780 784 "rust-analyzer.cargo.features": "all", 781 785 "rust-analyzer.cargo.extraEnv": { 782 - "CARGO_UNSTABLE_SPARSE_REGISTRY": "true" 786 + "CARGO_UNSTABLE_SPARSE_REGISTRY": "true", 783 787 }, 784 788 "rust-analyzer.cargo.noDefaultFeatures": false, 785 789 "rust-analyzer.checkOnSave.allTargets": true, ··· 808 812 "clippy::must_use_candidate", 809 813 ], 810 814 "rust-analyzer.diagnostics.warningsAsInfo": [ 815 + "missing_docs", 811 816 "clippy::pedantic", 812 817 ], 813 818 "rust-analyzer.imports.granularity.enforce": true, ··· 902 907 "fish" 903 908 ], 904 909 // actually use the colors I configure!!1! 905 - "terminal.integrated.minimumContrastRatio": 1, 910 + "terminal.integrated.minimumContrastRatio": 2, 906 911 "terminal.integrated.macOptionClickForcesSelection": false, 907 912 "terminal.integrated.drawBoldTextInBrightColors": false, 908 913 "terminal.integrated.rendererType": "auto", ··· 937 942 "icon": "chevron-right" 938 943 }, 939 944 }, 945 + "terminal.integrated.wordSeparators": "/\\()\"':,.;<>~!@#$%^&*|+=[]{}`?-_", 940 946 941 947 "todo-tree.filtering.includeHiddenFiles": true, 942 948 "todo-tree.filtering.scopes": [
+3 -3
.config/fish/conf.d/50-config.fish
··· 46 46 # wewlad: https://github.com/sharkdp/bat/issues/652 47 47 # Pending better support from bat, just strip all overstrike chars 48 48 # and rely on the syntax highlighting instead of underscores/bold 49 - set -gx MANPAGER "$sed -E 's#(.)\x08\1#\1#g' | 50 - $sed -E 's#_\x08(.)#\1#g' | 51 - bat --plain --language=Manpage" 49 + set -gx MANPAGER \ 50 + "sh -c \"$sed -E -e 's#(.)\x08\1#\1#g' -e 's#_\x08(.)#\1#g' | 51 + bat --plain --language=Manpage\"" 52 52 end 53 53 54 54 if not set -q DOCKER_NAME; and test -f /etc/profile.d/docker_name.sh
+8
.config/fish/functions/__fish_bind_question.fish
··· 1 + function __fish_bind_question 2 + switch (commandline --current-token)[-1] 3 + case '$' '*$' 4 + commandline --insert status 5 + case "*" 6 + commandline --insert '?' 7 + end 8 + end
-4
.config/fish/functions/act.fish
··· 1 - function act 2 - set -x DOCKER_HOST "unix://$HOME/.colima/docker.sock" 3 - command act $argv 4 - end
+7
.config/fish/functions/citra.fish
··· 1 + function citra 2 + if command -q flatpak 3 + flatpak run --command=citra org.citra_emu.citra $argv 4 + else 5 + command citra $argv 6 + end 7 + end
+1
.config/fish/functions/fish_user_key_bindings.fish
··· 2 2 bind ! __fish_bind_bang 3 3 bind '$' __fish_bind_dollar 4 4 bind '*' __fish_bind_star 5 + bind '?' __fish_bind_question 5 6 6 7 # Bind cmd+backspace + cmd+del to delete remainder of line 7 8 bind \e\[3\;9~ kill-line
+45 -18
.config/kinto/kinto.py
··· 108 108 # edges = [edge.casefold() for edge in edges] 109 109 # edgeStr = "|".join(str('^'+x+'$') for x in edges) 110 110 111 - define_multipurpose_modmap( 112 - # {Key.ENTER: [Key.ENTER, Key.RIGHT_CTRL] # Enter2Cmd 113 - # {Key.CAPSLOCK: [Key.ESC, Key.RIGHT_CTRL] # Caps2Esc 114 - # {Key.LEFT_META: [Key.ESC, Key.RIGHT_CTRL] # Caps2Esc - Chromebook 115 - { # Placeholder 111 + define_multipurpose_modmap({ 112 + # Key.ENTER: [Key.ENTER, Key.RIGHT_CTRL], # Enter2Cmd 113 + # Key.CAPSLOCK: [Key.ESC, Key.RIGHT_CTRL], # Caps2Esc 114 + # Key.LEFT_META: [Key.ESC, Key.RIGHT_CTRL], # Caps2Esc - Chromebook 116 115 }) 117 116 118 117 # Fix for avoiding modmapping when using Synergy keyboard/mouse sharing. ··· 455 454 # Open preferences in browsers 456 455 define_keymap(re.compile("^Firefox$", re.IGNORECASE),{ 457 456 K("C-comma"): [ 458 - K("C-T"),K("a"),K("b"),K("o"),K("u"),K("t"), 459 - K("Shift-SEMICOLON"),K("p"),K("r"),K("e"),K("f"), 460 - K("e"),K("r"),K("e"),K("n"),K("c"),K("e"),K("s"),K("Enter"), 457 + K("Alt-e"), K("n"), 458 + # K("C-T"),K("a"),K("b"),K("o"),K("u"),K("t"), 459 + # K("Shift-SEMICOLON"),K("p"),K("r"),K("e"),K("f"), 460 + # K("e"),K("r"),K("e"),K("n"),K("c"),K("e"),K("s"),K("Enter"), 461 461 # Sometimes the first one doesn't work?? 462 - K("C-L"),K("Enter"), 462 + # K("N"), 463 463 ], 464 464 # K("RC-Shift-N"): K("RC-Shift-P"), # Open private window with Ctrl+Shift+N like other browsers 465 465 ··· 506 506 # Use Cmd+Braces keys for tab navigation instead of page navigation 507 507 # K("C-Left_Brace"): K("C-Page_Up"), 508 508 # K("C-Right_Brace"): K("C-Page_Down"), 509 + 510 + # Github saved replies 511 + K("Super-Dot"): K("C-Dot"), 512 + # Emoji picker. This one might be better off as a top-level? 513 + K("C-Super-Dot"): K("Super-Dot"), 514 + 509 515 }, "General Web Browsers") 510 516 511 517 define_keymap(re.compile("^ulauncher$", re.IGNORECASE),{ ··· 584 590 K("RC-Shift-Left"): K("Super-Shift-Left"), 585 591 K("RC-Shift-Right"): K("Super-Shift-Right"), 586 592 587 - # # TODO: these don't seem to work yet... 588 - # K("Alt-RC-Left"): K("Alt-Super-Left"), 589 - # K("Alt-RC-Right"): K("Alt-Super-Right"), 590 - # K("Alt-RC-Up"): K("Alt-Super-Up"), 591 - # K("Alt-RC-Down"): K("Alt-Super-Down"), 593 + # Global shortcuts: tiling / maximize 594 + K("RC-LC-Alt-Left"): K("Super-LC-Alt-Left"), 595 + K("RC-LC-Alt-Right"): K("Super-LC-Alt-Right"), 596 + K("RC-LC-Alt-Up"): K("Super-LC-Alt-Up"), 597 + K("RC-LC-Alt-Down"): K("Super-LC-Alt-Down"), 598 + K("RC-LC-Shift-Up"): K("Super-LC-Shift-Up"), 599 + 600 + # Global shortcuts: switch desktops, media etc 601 + K("LC-Up"): K("Super-Up"), 602 + K("LC-Down"): K("Super-Down"), 603 + K("LC-Left"): K("Super-Left"), 604 + K("LC-Right"): K("Super-Right"), 605 + 606 + K("LC-Shift-Up"): K("Super-Shift-Up"), 607 + K("LC-Shift-Down"): K("Super-Shift-Down"), 608 + K("LC-Shift-Left"): K("Super-Shift-Left"), 609 + K("LC-Shift-Right"): K("Super-Shift-Right"), 610 + 611 + K("LC-Shift-Space"): K("Super-Shift-Space"), 612 + 613 + # completion. C-I == <tab>, I guess? 614 + K("Alt-Tab"): K("C-Alt-i"), 592 615 }, "emacs") 593 616 594 617 # None referenced here originally ··· 606 629 K("RC-Q"): K("Alt-F4"), # Default SL - not-popos 607 630 K("RC-H"):K("Super-h"), # Default SL - Minimize app (gnome/budgie/popos/fedora) 608 631 K("Alt-Tab"): pass_through_key, # Default - Cmd Tab - App Switching Default 632 + K("Shift-Alt-Tab"): pass_through_key, # Default - Cmd Tab - App Switching Default 609 633 K("RC-Tab"): K("Alt-Tab"), # Default - Cmd Tab - App Switching Default 610 634 K("RC-Shift-Tab"): K("Alt-Shift-Tab"), # Default - Cmd Tab - App Switching Default 611 635 K("RC-Grave"): K("Alt-Grave"), # Default not-xfce4 - Cmd ` - Same App Switching ··· 675 699 K("Alt-Delete"): K("C-Delete"), # Delete Right Word of Cursor 676 700 # K(""): pass_through_key, # cancel 677 701 # K(""): K(""), # 702 + 703 + # This will probably require keyszer to work: 704 + # K("Fn-Space"): K("RC-Space") 678 705 }, "General GUI") 679 706 680 707 define_keymap(lambda wm_class: wm_class.casefold() not in mscodes,{ ··· 705 732 K("Super-Space"): K("LC-Space"), # Basic code completion 706 733 # Wordwise remaining - for VS Code 707 734 # Alt-F19 hack fixes Alt menu activation 708 - K("Alt-Left"): [K("Alt-F19"),K("C-Left")], # Left of Word 709 - K("Alt-Right"): [K("Alt-F19"),K("C-Right")], # Right of Word 710 - K("Alt-Shift-Left"): [K("Alt-F19"),K("C-Shift-Left")], # Select Left of Word 711 - K("Alt-Shift-Right"): [K("Alt-F19"),K("C-Shift-Right")], # Select Right of Word 735 + # K("Alt-Left"): [K("Alt-F19"),K("C-Left")], # Left of Word 736 + # K("Alt-Right"): [K("Alt-F19"),K("C-Right")], # Right of Word 737 + # K("Alt-Shift-Left"): [K("Alt-F19"),K("C-Shift-Left")], # Select Left of Word 738 + # K("Alt-Shift-Right"): [K("Alt-F19"),K("C-Shift-Right")], # Select Right of Word 712 739 713 740 # K("C-PAGE_DOWN"): pass_through_key, # cancel next_view 714 741 # K("C-PAGE_UP"): pass_through_key, # cancel prev_view
+1
.cspell/default.txt
··· 112 112 pkgrepos 113 113 pkgs 114 114 plist 115 + pointee 115 116 popd 116 117 Popen 117 118 praju
+69 -14
.emacs.d/init.el
··· 1 + ;; To bootstrap / reload packages after deleting elpa directory: 2 + ;; 1. M-x package-refresh-contents 3 + ;; 2. M-x package-install-selected-packages 4 + ;; 3. Restart emacs 5 + 1 6 (require 'package) 7 + 2 8 (let* ((no-ssl (and (memq system-type '(windows-nt ms-dos)) 3 9 (not (gnutls-available-p)))) 4 10 (proto (if no-ssl "http" "https"))) ··· 8 14 There are two things you can do about this warning: 9 15 1. Install an Emacs version that does support SSL and be safe. 10 16 2. Remove this warning from your init file so you won't see it again.")) 11 - ;; (add-to-list 'package-archives (cons "melpa" (concat proto "://melpa.org/packages/")) t) 17 + (add-to-list 'package-archives (cons "melpa" (concat proto "://melpa.org/packages/")) t)) 12 18 ;; Comment/uncomment this line to enable MELPA Stable if desired. See `package-archive-priorities` 13 19 ;; and `package-pinned-packages`. Most users will not need or want to do this. 14 - (add-to-list 'package-archives (cons "melpa-stable" (concat proto "://stable.melpa.org/packages/")) t)) 20 + ;; (add-to-list 'package-archives (cons "melpa-stable" (concat proto "://stable.melpa.org/packages/")) t)) 15 21 16 22 ;; Added by Package.el. This must come before configurations of 17 23 ;; installed packages. Don't delete this line. If you don't want it, ··· 24 30 ;; If you edit it by hand, you could mess it up, so be careful. 25 31 ;; Your init file should contain only one such instance. 26 32 ;; If there is more than one, they won't work right. 33 + '(alert-fade-time 5) 27 34 '(auto-save-file-name-transforms '((".*" "~/.emacs.d/autosave/" t))) 28 35 '(backup-by-copying t) 29 36 '(backup-directory-alist '(("." . "~/.emacs.d/backup"))) 30 37 '(before-save-hook '(delete-trailing-whitespace)) 31 38 '(browse-url-browser-function 'browse-url-default-browser) 32 39 '(delete-old-versions t) 40 + '(desktop-path '("~/.emacs.d/")) 33 41 '(display-line-numbers-width-start t) 34 42 '(epg-gpg-program "gpg") 43 + '(evil-undo-system 'undo-redo) 35 44 '(evil-vsplit-window-right t) 45 + '(evil-want-keybinding nil) 36 46 '(fill-column 88) 37 47 '(global-display-line-numbers-mode t) 48 + '(global-orglink-mode t) 38 49 '(gnutls-algorithm-priority "normal:-vers-tls1.3") 39 50 '(hl-todo-color-background t) 40 51 '(hl-todo-keyword-faces ··· 57 68 ((org-agenda-overriding-header "3 DAY VIEW") 58 69 (org-agenda-span '3) 59 70 (org-agenda-start-day "today"))))) 60 - '(org-agenda-files '("~/Documents/notes/")) 71 + '(org-agenda-files '("~/Documents/notes/sabbatical" "~/Documents/notes/")) 61 72 '(org-agenda-restore-windows-after-quit t) 62 73 '(org-agenda-todo-list-sublevels t) 63 74 '(org-agenda-window-setup 'current-window) ··· 67 78 ("begin" "$1" "$" "$$" "\\(" "\\["))) 68 79 '(org-image-actual-width nil) 69 80 '(org-indirect-buffer-display 'current-window) 81 + '(org-notifications-play-sounds nil) 82 + '(org-notifications-style 'libnotify) 83 + '(org-notifications-title "Agenda Reminder") 70 84 '(org-preview-latex-default-process 'dvipng) 71 85 '(org-startup-indented t) 72 86 '(org-startup-with-inline-images t) 73 87 '(org-startup-with-latex-preview t) 74 88 '(org-todo-keywords '((sequence "TODO" "PROG" "|" "DONE" "WONTDO"))) 75 89 '(org-use-property-inheritance '("DEADLINE" "SCHEDULED")) 90 + '(org-wild-notifier-keyword-whitelist nil) 76 91 '(package-selected-packages 77 - '(ox-gfm go-mode yaml-mode rust-mode hl-todo evil-collection monokai-theme evil-org evil ##)) 92 + '(org-notifications org-ql dash alert orglink ox-gfm go-mode yaml-mode rust-mode hl-todo evil-collection monokai-theme evil-org evil ##)) 78 93 '(require-final-newline t) 79 94 '(select-enable-clipboard nil) 80 95 '(show-paren-mode t) 81 96 '(split-height-threshold nil) 97 + '(tool-bar-mode nil) 98 + '(tool-bar-style 'both-horiz) 82 99 '(version-control t)) 83 100 (custom-set-faces 84 101 ;; custom-set-faces was added by Custom. ··· 97 114 ;; Directory for non-package (require) calls 98 115 (add-to-list 'load-path "~/.emacs.d/lisp/") 99 116 100 - 101 117 (require 'evil) 102 118 (evil-mode 1) 103 119 104 - ;; TODO: evil-collection bindings for customize-mode 105 - ;; (when (require 'evil-collection nil t) 106 - ;; (evil-collection-init)) 107 - 108 - ;; https://github.com/Somelauw/evil-org-mode/issues/93#issuecomment-950306532 109 120 (require 'evil-org) 110 121 (add-hook 'org-mode-hook 'evil-org-mode) 111 - (evil-org-set-key-theme '(navigation insert textobjects additional calendar)) 112 122 123 + (require 'evil-collection) 124 + ;; instead of customizing the huge list just remove stuff we don't want 125 + (setq evil-collection-mode-list (remove '(custom cus-edit) evil-collection--supported-modes)) 126 + (evil-collection-init) 113 127 114 128 (require 'evil-org-agenda) 115 129 (evil-org-agenda-set-keys) ··· 215 229 (defun slide-buffer-left () (interactive) (slide-buffer 'left)) 216 230 (defun slide-buffer-right () (interactive) (slide-buffer 'right)) 217 231 232 + ;; rebuild all open agenda buffers 233 + (defun org-agenda-redo-all() 234 + (interactive) 235 + (dolist (buffer (buffer-list)) 236 + (with-current-buffer buffer 237 + (when (derived-mode-p 'org-agenda-mode) 238 + ;; TBD: maybe-redo vs redo. maybe-redo seemed to work before 239 + ;; but now it seems like redo is working better 240 + (org-agenda-redo))))) 241 + 242 + (defun org-agenda-redo-save-hook() 243 + ;; same as above, but only if current mode is org-mode 244 + (when (eq major-mode 'org-mode) 245 + (org-agenda-redo-all) 246 + ;; re-evaluate notifications after updating agenda 247 + (org-notifications-start))) 248 + 249 + 218 250 ;; ---------------------------------------------------------------------- 219 251 ;; Key bindings 220 252 ;; ---------------------------------------------------------------------- ··· 231 263 232 264 (global-set-key (kbd "<C-s-left>") 'slide-buffer-left) 233 265 (global-set-key (kbd "<C-s-right>") 'slide-buffer-right) 266 + (global-set-key (kbd "<C-s-down>") 'slide-buffer-down) 267 + (global-set-key (kbd "<C-s-up>") 'slide-buffer-up) 234 268 235 269 (global-set-key (kbd "<s-mouse-1>") 'go-to-definition-or-open-link) 270 + (global-set-key (kbd "<C-down-mouse-1>") 'go-to-definition-or-open-link) 236 271 237 272 ;; window movement 238 273 (global-set-key (kbd "<M-s-right>") 'windmove-right) 239 274 (global-set-key (kbd "<M-s-left>") 'windmove-left) 240 275 (global-set-key (kbd "<M-s-down>") 'windmove-down) 241 276 (global-set-key (kbd "<M-s-up>") 'windmove-up) 277 + 278 + ;; on linux 279 + (global-set-key (kbd "<C-M-right>") 'windmove-right) 280 + (global-set-key (kbd "<C-M-left>") 'windmove-left) 281 + (global-set-key (kbd "<C-M-down>") 'windmove-down) 282 + (global-set-key (kbd "<C-M-up>") 'windmove-up) 242 283 243 284 ;; ---------------------------------------------------------------------- 244 285 ;; Startup configuration ··· 286 327 (define-key minibuffer-local-must-match-map [escape] 'minibuffer-keyboard-quit) 287 328 (define-key minibuffer-local-isearch-map [escape] 'minibuffer-keyboard-quit) 288 329 289 - ; Add LaTeX binaries to path for org-mode 330 + ;; Add LaTeX binaries to path for org-mode 290 331 (setenv "PATH" (concat "/Library/TeX/texbin:" (getenv "PATH"))) 291 332 (add-to-list 'exec-path "/Library/TeX/texbin") 292 333 293 - ; Make org-mode wrap text by default 334 + ;; Make org-mode wrap text by default 294 335 (add-hook 'org-mode-hook 'visual-line-mode) 295 336 296 - ; Export org-mode to github-flavored markdown 337 + ;; Update agenda views upon saving org files 338 + (add-hook 'after-save-hook 'org-agenda-redo-save-hook) 339 + 340 + ;; Org mode synced files auto-update to the file on disk 341 + (add-hook 'org-mode-hook #'auto-revert-mode) 342 + 343 + ;; Export org-mode to github-flavored markdown 297 344 (eval-after-load "org" 298 345 '(require 'ox-gfm nil t)) 346 + 347 + (org-notifications-start) 348 + ;; add our own rule to make sure notifs are persistent. 349 + (alert-add-rule :category "org-notifications" 350 + :persistent t 351 + :style 'notifications 352 + ;; by default this is inserted to head of list 353 + :continue t)
+4 -1
.gitconfig
··· 43 43 attributesfile = ~/.gitattributes 44 44 quotePath = true 45 45 [diff] 46 - tool = vimdiff 46 + tool = code 47 + context = 5 47 48 [difftool] 48 49 trustExitCode = true 49 50 prompt = false ··· 73 74 recurseSubmodules = no 74 75 [protocol "file"] 75 76 allow = always 77 + [gui] 78 + editor = code
+3
.vimrc
··· 47 47 noremap gU <Nop> 48 48 noremap gUU <Nop> 49 49 50 + " System copy-paste 51 + map <C-C> "+ygv 52 + 50 53 " Use newer info than the macOS builtin 51 54 let g:infoprg = '/usr/local/opt/texinfo/bin/info' 52 55