config: misc updates

This commit is contained in:
xeruf 2021-06-19 21:26:23 +02:00
parent b7e02d8e2d
commit fb9b20d4d9
3 changed files with 7 additions and 5 deletions

View File

@ -350,7 +350,8 @@ Version 2019-11-04 2021-02-16"
(map! :map dired-mode-map (map! :map dired-mode-map
:n "RET" 'dired-find-file-dwim :n "RET" 'dired-find-file-dwim
:localleader :localleader
"i" (lambda () (interactive) (image-dired buffer-file-name)) :desc "Open dir in image-dired" "i" (lambda () (interactive) (image-dired buffer-file-name))
:desc "Compress/Extract" "c" 'dired-do-compress
) )
(map! :map wdired-mode-map (map! :map wdired-mode-map
:n "RET" 'dired-find-file-dwim :n "RET" 'dired-find-file-dwim
@ -417,6 +418,7 @@ Version 2019-11-04 2021-02-16"
(setq direnv-always-show-summary nil) (setq direnv-always-show-summary nil)
(direnv-mode) (direnv-mode)
) )
(use-package! plantuml-mode ; Diagrams (use-package! plantuml-mode ; Diagrams
:defer t :defer t
:config :config

View File

@ -51,7 +51,7 @@ autocmd BufRead $XDG_CONFIG_HOME/yadm/bootstrap setlocal filetype=sh
" shebang shortcut - https://www.reddit.com/r/vim/comments/4z7z7s/add_shebang_lines_to_your_vim_files_automatically/d6v7op8 and https://stackoverflow.com/a/52135425 " shebang shortcut - https://www.reddit.com/r/vim/comments/4z7z7s/add_shebang_lines_to_your_vim_files_automatically/d6v7op8 and https://stackoverflow.com/a/52135425
inoreabbrev <expr> #!! "#!/usr/bin/env" . (empty(&filetype) ? '' : ' '.&filetype) inoreabbrev <expr> #!! "#!/usr/bin/env" . (empty(&filetype) ? '' : ' '.&filetype)
autocmd BufNewFile *.sh,$HOME/.local/bin/* execute 'silent! 1s/.*/#!\/bin\/sh\r\r'| setlocal filetype=sh | :startinsert autocmd BufNewFile *.sh,$HOME/.local/bin/* execute 'silent! 1s/.*/#!\/bin\/sh\r'| setlocal filetype=sh | :startinsert
"autocmd BufNewFile * if !empty(&filetype) | execute 'silent! 1s/.*/#!\/usr\/bin\/' . &filetype . '\r\r'| :startinsert | endif "autocmd BufNewFile * if !empty(&filetype) | execute 'silent! 1s/.*/#!\/usr\/bin\/' . &filetype . '\r\r'| :startinsert | endif
set spelllang=en_us,de_de set spelllang=en_us,de_de

View File

@ -4,12 +4,12 @@
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped # Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an # homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported. # absolute path. No other format is supported.
# #
XDG_DESKTOP_DIR="$HOME/.local/desktop" XDG_DESKTOP_DIR="$HOME/.local/desktop"
XDG_TEMPLATES_DIR="$HOME/.local/templates" XDG_TEMPLATES_DIR="$HOME/.local/templates"
XDG_DOWNLOAD_DIR="$HOME/data/4-incubator/downloads" XDG_DOWNLOAD_DIR="$HOME/data/4-incubator/downloads"
XDG_MUSIC_DIR="$HOME/data/music" XDG_MUSIC_DIR="$HOME/data/music"
XDG_PICTURES_DIR="$HOME/data/images" XDG_PICTURES_DIR="$HOME/data/images"
XDG_VIDEOS_DIR="$HOME/" XDG_VIDEOS_DIR="$HOME/data/3-resources"
XDG_DOCUMENTS_DIR="$HOME/data/3-resources/documents" XDG_DOCUMENTS_DIR="$HOME/data/3-resources"
XDG_PUBLICSHARE_DIR="$HOME/" XDG_PUBLICSHARE_DIR="$HOME/"