Fixing fish environment and a couple of init.el improvements

This commit is contained in:
Joseph Ferano 2023-03-04 19:56:24 +07:00
parent 359158ecda
commit 780ed8e9fc
3 changed files with 12 additions and 11 deletions

View File

@ -241,6 +241,8 @@ Save the chosen theme after picking a new one
Setup other stuff
#+begin_src emacs-lisp
(setq ring-bell-function 'ignore)
(add-hook 'text-mode-hook (lambda () (setq fill-column 100) (turn-on-auto-fill)))
(setq-default display-line-numbers 'relative)
@ -300,7 +302,8 @@ Setup other stuff
** Text
#+begin_src emacs-lisp
(set-face-attribute 'default nil :family "Fira Code Nerd Font Mono" :height 110)
;; (set-face-attribute 'default nil :family "Fira Code Nerd Font Mono" :height 110)
(set-face-attribute 'default nil :family "Fira Code" :height 110)
;; (set-face-attribute 'variable-pitch nil :family "Source Code Pro" :height 120)
(setq-default c-basic-offset 4) ;; This is annoying
(setq-default indent-tabs-mode nil)
@ -1490,7 +1493,7 @@ println!("Hello world");
(define-key global-map (kbd "M-s") #'save-buffer)
(add-hook 'evil-insert-state-exit-hook #'joe/save-if-file)
(add-hook 'after-change-functions #'joe/save-if-file-ignore-args)
;; (add-hook 'after-change-functions #'joe/save-if-file-ignore-args)
;; (define-key global-map (kbd "C-x C-s) #'save-buffer)
(define-key global-map (kbd "<f9>") #'joe/save-then-recompile)
(define-key global-map (kbd "<f10>") #'compile)

View File

@ -1,19 +1,12 @@
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR --export CARGO_HOME:/home/joe/\x2elocal/share/bin/cargo/
SETUVAR EDITOR:hx
SETUVAR --export GHCUP_USE_XDG_DIRS:true
SETUVAR --export --path GOPATH:/home/joe/\x2elocal/share/go/
SETUVAR --export LC_COLLATE:C
SETUVAR --export NNN_FIFO:/tmp/nnn\x2efifo
SETUVAR --export OPAMROOT:/home/joe/\x2elocal/share/opam/
SETUVAR --export VISUAL:hx
SETUVAR XDG_CACHE_HOME:/home/joe/\x2ecache
SETUVAR XDG_CONFIG_HOME:/home/joe/\x2econfig
SETUVAR XDG_DATA_HOME:/home/joe/\x2elocal/share
SETUVAR __fish_initialized:3400
SETUVAR _fisher_jorgebucaran_2F_fisher_files:/home/joe/\x2econfig/fish/functions/fisher\x2efish\x1e/home/joe/\x2econfig/fish/completions/fisher\x2efish
SETUVAR _fisher_plugins:jorgebucaran/fisher\x1esei40kr/fish\x2dranger\x2dcd
SETUVAR _fisher_sei40kr_2F_fish_2D_ranger_2D_cd_files:/home/joe/\x2econfig/fish/functions/ranger\x2dcd\x2efish
SETUVAR fish_color_autosuggestion:969896
SETUVAR fish_color_cancel:\x2dr
SETUVAR fish_color_command:b294bb
@ -43,4 +36,4 @@ SETUVAR fish_pager_color_description:B3A06D\x1eyellow
SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
SETUVAR fish_pager_color_selected_background:\x2dr
SETUVAR fish_user_paths:/home/joe/\x2elocal/share/go/bin\x1e/home/joe/\x2elocal/share/cargo/bin\x1e/home/joe/\x2elocal/share/JetBrains/Toolbox/scripts\x1e/home/joe/\x2elocal/bin/jetbrains\x1e/home/joe/\x2elocal/share/JetBrains/Toolbox/script\x1e/home/joe/\x2elocal/share/solana/install/active_release/bin\x1e/home/joe/\x2edotnet/tools\x1e/home/joe/\x2elocal/bin
SETUVAR fish_user_paths:/home/joe/\x2elocal/share/bin/cargo/bin\x1e/home/joe/\x2elocal/share/solana/install/active_release/bin\x1e/home/joe/\x2elocal/bin

View File

@ -0,0 +1,5 @@
function listpaths
for p in $PATH
echo $p
end
end