Compare commits
No commits in common. "main" and "ui/kando" have entirely different histories.
17
System.org
17
System.org
|
@ -1,17 +0,0 @@
|
|||
#+title: System
|
||||
|
||||
Helpful guides for system installation.
|
||||
|
||||
* Partition Schemes
|
||||
|
||||
Recommended partition scheme for directories:
|
||||
#+begin_src
|
||||
/
|
||||
├ /boot # Same drive
|
||||
├ /nix
|
||||
├ /home # Different drive
|
||||
#+end_src
|
||||
|
||||
** Encrypted Partitions
|
||||
|
||||
See [[https://wiki.archlinux.org/title/Dm-crypt/Mounting_at_login][DM-Crypt on Arch Wiki]]
|
|
@ -160,23 +160,6 @@ Modifications to the default key bindings to mimic spacemacs
|
|||
(map! :nvi "C" nil) ; remove this one weird binding
|
||||
|
||||
(map! "<f12>" #'toggle-input-method)
|
||||
|
||||
; Remap JIS yen key to backslash
|
||||
(global-set-key (kbd "M-¥") (kbd "\\"))
|
||||
(global-set-key (kbd "M-|") (kbd "|"))
|
||||
(global-set-key (kbd "C-M-¥") (kbd "C-\\"))
|
||||
#+end_src
|
||||
|
||||
** Scroll
|
||||
|
||||
#+begin_src emacs-lisp :tangle packages.el
|
||||
(use-package ultra-scroll
|
||||
;:load-path "~/code/emacs/ultra-scroll" ; if you git clone'd instead of package-vc-install
|
||||
:init
|
||||
(setq scroll-conservatively 101 ; important!
|
||||
scroll-margin 0)
|
||||
:config
|
||||
(ultra-scroll-mode 1))
|
||||
#+end_src
|
||||
|
||||
** Font settings
|
||||
|
@ -280,10 +263,6 @@ numbers are disabled. For relative line numbers, set this to ~relative~.
|
|||
css-indent-offset 3
|
||||
sh-indentation 3
|
||||
nxml-indent-offset 3
|
||||
tex-indent-arg 3
|
||||
tex-indent-item 3
|
||||
tex-indent-basic 3
|
||||
typst-ts-mode-indent-offset 2
|
||||
)
|
||||
#+end_src
|
||||
|
||||
|
@ -669,30 +648,6 @@ Add the necessary hooks for LilyPond mode.
|
|||
(setq rustic-indent-offset standard-indent))
|
||||
#+end_src
|
||||
|
||||
*** Typst
|
||||
|
||||
#+begin_src emacs-lisp :tangle packages.el
|
||||
(package! typst-ts-mode :recipe (
|
||||
:type git :host codeberg :repo "meow_king/typst-ts-mode"))
|
||||
#+end_src
|
||||
#+begin_src emacs-lisp
|
||||
(map! :after typst-ts-mode
|
||||
:localleader
|
||||
:map typst-ts-mode-map
|
||||
:desc "Preview" "p" #'typst-ts-preview
|
||||
:desc "Compile" "c" #'typst-ts-compile
|
||||
:desc "Compile & Preview" "P" #'typst-ts-compile-and-preview
|
||||
:desc "Watch start" "w" #'typst-ts-watch-start
|
||||
:desc "Watch stop" "W" #'typst-ts-watch-stop
|
||||
(:prefix ("h" . "Heading")
|
||||
:desc "Left" "h" #'typst-ts-mode-heading-left
|
||||
:desc "Right" "l" #'typst-ts-mode-heading-right
|
||||
:desc "Up" "k" #'typst-ts-mode-heading-up
|
||||
:desc "Down" "j" #'typst-ts-mode-heading-down
|
||||
)
|
||||
)
|
||||
#+end_src
|
||||
|
||||
** Tools
|
||||
|
||||
*** Language Server Protocol (LSP)
|
||||
|
|
|
@ -95,7 +95,7 @@
|
|||
(eval +overlay) ; run code, run (also, repls)
|
||||
;;gist ; interacting with github gists
|
||||
lookup ; navigate your code and its documentation
|
||||
(lsp +eglot) ; M-x vscode
|
||||
(lsp +peek +eglot) ; M-x vscode
|
||||
(magit +forge) ; a git porcelain for Emacs
|
||||
make ; run make tasks from Emacs
|
||||
pass ; password manager for nerds
|
||||
|
@ -143,12 +143,12 @@
|
|||
json ; At least it ain't XML
|
||||
;;(java +lsp) ; the poster child for carpal tunnel syndrome
|
||||
javascript ; all(hope(abandon(ye(who(enter(here))))))
|
||||
(julia +tree-sitter +snail) ; a better, faster MATLAB
|
||||
(julia +lsp) ; a better, faster MATLAB
|
||||
;;kotlin ; a better, slicker Java(Script)
|
||||
(latex +latexmk +lsp) ; writing papers in Emacs has never been so fun
|
||||
;lean ; for folks with too much to prove
|
||||
lean ; for folks with too much to prove
|
||||
ledger ; be audit you can be
|
||||
lua ; one-based indices? one-based indices
|
||||
;;lua ; one-based indices? one-based indices
|
||||
markdown ; writing docs for people to ignore
|
||||
;;nim ; python + lisp at the speed of c
|
||||
nix ; I hereby declare "nix geht mehr!"
|
||||
|
|
|
@ -40,54 +40,39 @@ end
|
|||
|
||||
function fish_prompt
|
||||
# set_color white
|
||||
# printf '['
|
||||
# echo -n '['
|
||||
|
||||
set -l FishStatusCodeCache $status
|
||||
|
||||
set_color -o 00FF00 -b 333333
|
||||
printf (whoami)
|
||||
set_color -o 00FF00
|
||||
echo -n (whoami)
|
||||
|
||||
set_color normal
|
||||
set_color -b 333333
|
||||
printf '@'
|
||||
echo -n '@'
|
||||
|
||||
set_color AFD75F
|
||||
printf (prompt_hostname)
|
||||
echo -n (prompt_hostname)
|
||||
|
||||
set_color white
|
||||
printf ':'
|
||||
echo -n ':'
|
||||
|
||||
set_color 8787FF
|
||||
printf (prompt_abbr $PWD)
|
||||
echo -n (prompt_abbr $PWD)
|
||||
|
||||
set -l vcs_prompt (fish_vcs_prompt)
|
||||
if test -n "$vcs_prompt"
|
||||
printf " "
|
||||
set_color 5F87D7
|
||||
printf '\uf126'
|
||||
printf (fish_vcs_prompt)
|
||||
end
|
||||
set_color 5F87D7
|
||||
echo -n (__fish_vcs_prompt)
|
||||
|
||||
if test $FishStatusCodeCache -eq 0
|
||||
#set_color 18C412
|
||||
else
|
||||
set_color E84505
|
||||
printf " [$FishStatusCodeCache]"
|
||||
echo -n " [$FishStatusCodeCache]"
|
||||
end
|
||||
|
||||
# set_color white
|
||||
# printf "]"
|
||||
# echo -n "]"
|
||||
|
||||
set_color 999999
|
||||
printf " "
|
||||
printf (date '+%Y/%m/%d %H:%M:%S')
|
||||
printf "\n"
|
||||
|
||||
#set_color -o white
|
||||
#printf "> "
|
||||
|
||||
set_color normal
|
||||
set_color -o green
|
||||
printf "⮀ "
|
||||
set_color -o white
|
||||
echo -n "> "
|
||||
set_color normal
|
||||
end
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/fish
|
||||
|
||||
function fish_right_prompt
|
||||
set_color grey
|
||||
printf (date '+%H:%M:%S')
|
||||
set_color normal
|
||||
end
|
||||
|
Loading…
Reference in New Issue