Changed shortcuts for Umlaute and improved compiling shortcuts

clean_emacs
TuDatTr 2020-01-20 01:04:10 +01:00
parent 5c0c9da67a
commit 229e27c84c
10 changed files with 32 additions and 30 deletions

View File

@ -5,8 +5,8 @@ m:/run/media/tuan
a:/home/tuan/Documents/Arbeit a:/home/tuan/Documents/Arbeit
l:/home/tuan/Local l:/home/tuan/Local
c:/home/tuan/Documents/CTF/picoCTF c:/home/tuan/Documents/CTF/picoCTF
':/home/tuan/.vim/ftplugin
t:/home/tuan/Templates t:/home/tuan/Templates
w:/home/tuan/workspace_l/Projects w:/home/tuan/workspace_l/Projects
k:/home/tuan/Documents/Fachschaft/Berufungskomission k:/home/tuan/Documents/Fachschaft/Berufungskomission
q:/home/tuan/.nextcloud/Quick Drop q:/home/tuan/.nextcloud/Quick Drop
':/home/tuan/.go/src/github.com/tudattr/favorites_api/requirements

View File

@ -10,6 +10,12 @@ Host helios
User infra User infra
IdentityFile /mnt/veracrypt1/fse IdentityFile /mnt/veracrypt1/fse
Host root
HostName 132.252.238.06
Port 2222
User root
IdentityFile /mnt/veracrypt1/fse
Host www Host www
HostName 132.252.238.16 HostName 132.252.238.16
Port 22 Port 22

View File

@ -4,5 +4,6 @@ imap ;main package main<CR><CR>import (<CR>"fmt"<CR>)<CR><CR>func main() {<CR>}<
" Compiling " Compiling
map <C-c><C-c> <Esc>:!clear; go run %<CR> map <C-c><C-c> <Esc>:!clear; go run %<CR>
map <C-c><C-b> <Esc>:!clear; go build %; ./%<<CR> map <C-c><C-b> <Esc>:!clear; go build %; ./%<<CR><CR>
map <C-c><C-w> <Esc>:!clear; GOOS=windows GOARCH=386 go build -o %<.exe % map <C-c><C-t> <Esc>:!clear; go test & detatch<CR><CR>
map <C-c><C-w> <Esc>:!clear; GOOS=windows GOARCH=386 go build -o %<.exe %<CR><CR>

View File

@ -0,0 +1,10 @@
" setlocal spell spelllang=de_de
" set nospell
" Begin Shortcuts
" Compilation
map <C-c><C-c> <Esc>:!pandoc <C-r>% -o <C-r>%<Del><Del>pdf --from gfm --template $HOME/Templates/Pandoc/eisvogel --listings &>/dev/null & disown <CR><CR>
map <C-c><C-d> <Esc>:!evince <C-r>%<Del><Del>pdf &>/dev/null & disown <CR><CR>

View File

@ -1,10 +0,0 @@
" setlocal spell spelllang=de_de
" set nospell
" Begin Shortcuts
" Compilation
map <C-c><C-c> <Esc>:!pandoc <C-r>% --pdf-engine=xelatex -o <C-r>%<Del><Del>pdf &>/dev/null & disown <CR>
map <C-c><C-d> <Esc>:!evince <C-r>%<Del><Del>pdf &>/dev/null & disown <CR>

View File

@ -5,7 +5,7 @@
imap <leader>ifm if<Space>__name__<Space>==<Space>'__main__':<CR> imap <leader>ifm if<Space>__name__<Space>==<Space>'__main__':<CR>
" Compiling " Compiling
map <C-c><C-c> <Esc>:!clear; python %<CR> map <C-c><C-c> <Esc>:!clear; python %<CR><CR>
" Use the below highlight group when displaying bad whitespace is desired. " Use the below highlight group when displaying bad whitespace is desired.
highlight BadWhitespace ctermbg=red guibg=red highlight BadWhitespace ctermbg=red guibg=red

View File

@ -1,3 +1,3 @@
" Compilation " Compilation
map <C-c><C-c> <Esc>:!clear&./%<CR> map <C-c><C-c> <Esc>:!clear&./%<CR><CR>

View File

@ -24,7 +24,7 @@ vnoremap "" da"`<C-R>""'<Esc>
":command! -complete=file -nargs=1 Rpdf :r !pdftotext -nopgbrk <q-args> - ":command! -complete=file -nargs=1 Rpdf :r !pdftotext -nopgbrk <q-args> -
":command! -complete=file -nargs=1 Rpdf :r !pdftotext -nopgbrk <q-args> - | fmt -csw78 ":command! -complete=file -nargs=1 Rpdf :r !pdftotext -nopgbrk <q-args> - | fmt -csw78
" Compilation " Compilation
noremap <C-c><C-c> <Esc>:!latexmk -pdf -silent "<C-r>%" &>/dev/null & disown <CR>:redraw!<CR> noremap <C-c><C-c> <Esc>:!latexmk -pdf -silent "<C-r>%" &>/dev/null & disown <CR>:redraw!<CR><CR>
noremap <C-c><C-v> <Esc>:!latexmk -c &>/dev/null & disown <CR> noremap <C-c><C-v> <Esc>:!latexmk -c &>/dev/null & disown <CR><CR>
noremap <C-c><C-d> <Esc>:!evince <C-r>%<Del><Del><Del>pdf &>/dev/null & disown <CR><CR> noremap <C-c><C-d> <Esc>:!evince <C-r>%<Del><Del><Del>pdf &>/dev/null & disown <CR><CR>

View File

@ -16,11 +16,11 @@ nmap 0 ^
nmap ' ` nmap ' `
" Diaeresis for e.g. german " Diaeresis for e.g. german
inoremap a" ä inoremap a<leader> ä
inoremap o" ö inoremap o<leader> ö
inoremap u" ü inoremap u<leader> ü
inoremap A" Ä inoremap A<leader> Ä
inoremap U" Ü inoremap U<leader> Ü
inoremap O" Ö inoremap O<leader> Ö
inoremap s" ß inoremap s<leader> ß
inoremap e" inoremap e<leader>

View File

@ -1,12 +1,10 @@
# Paths # Paths
export ZSH="/home/tuan/.oh-my-zsh" export ZSH="/home/tuan/.oh-my-zsh"
export PATH="$PATH:$HOME/go/bin:$HOME/.local/bin:$HOME/.cargo/bin:$HOME/.dotnet/tools" export PATH="$PATH:$HOME/go/bin:$HOME/.local/bin:$HOME/.cargo/bin:$HOME/.dotnet/tools"
export LEDGER_FILE="/home/tuan/Documents/Finanzen/Ledger/MyBudget.ledger"
export DOTNET_CLI_TELEMETRY_OPTOUT=1 export DOTNET_CLI_TELEMETRY_OPTOUT=1
export DOTNET_ROOT=/opt/dotnet export DOTNET_ROOT=/opt/dotnet
# Alias # Alias
alias gowinbuild='GOOS=windows GOARCH=amd64 go build'
alias q="exit" alias q="exit"
alias ranger='ranger --choosedir=$HOME/.rangerdir; LASTDIR=`cat $HOME/.rangerdir`; cd "$LASTDIR"' alias ranger='ranger --choosedir=$HOME/.rangerdir; LASTDIR=`cat $HOME/.rangerdir`; cd "$LASTDIR"'
alias xsel='xsel -ib' alias xsel='xsel -ib'
@ -23,8 +21,5 @@ plugins=(
# History # History
HISTORY_IGNORE='sudo veracrypt *|veracrypt *' HISTORY_IGNORE='sudo veracrypt *|veracrypt *'
transfer(){ if [ $# -eq 0 ];then echo "No arguments specified.\nUsage:\n transfer <file|directory>\n ... | transfer <file_name>">&2;return 1;fi;if tty -s;then file="$1";file_name=$(basename "$file");if [ ! -e "$file" ];then echo "$file: No such file or directory">&2;return 1;fi;if [ -d "$file" ];then file_name="$file_name.zip" ,;(cd "$file"&&zip -r -q - .)|curl --progress-bar --upload-file "-" "https://share.mos4.de/$file_name"|tee /dev/null,;else cat "$file"|curl --progress-bar --upload-file "-" "https://share.mos4.de/$file_name"|tee /dev/null;fi;else file_name=$1;curl --progress-bar --upload-file "-" "https://share.mos4.de/$file_name"|tee /dev/null;fi;}
# Source # Source
source $ZSH/oh-my-zsh.sh source $ZSH/oh-my-zsh.sh