config: misc updates
This commit is contained in:
parent
b7e02d8e2d
commit
fb9b20d4d9
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -10,6 +10,6 @@ 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/"
|
||||||
|
|
Loading…
Reference in New Issue