Skip to content

Commit

Permalink
Fix HTML/Markdown ftplugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ediw8311xht committed Nov 19, 2024
1 parent fd5d517 commit db96451
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 22 deletions.
9 changes: 5 additions & 4 deletions bashrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
#- ~/.bashrc
#
# shellcheck disable=SC2016,SC2064,SC1094
# shellcheck disable=SC2016,SC2064,SC1094,SC2089

#[[ $- == *i* ]] && source "${HOME}/.local/share/blesh/ble.sh" --noattach

Expand Down Expand Up @@ -32,6 +32,7 @@ shopt -s histappend

PATH="/$HOME/perl5/bin${PATH:+:${PATH}}"; export PATH;
PERL5LIB="/$HOME/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
PERL_LOCAL_LIB_ROOT="/$HOME/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
PERL_MB_OPT="--install_base \"/$HOME/perl5\""; export PERL_MB_OPT;
PERL_MM_OPT="INSTALL_BASE=/$HOME/perl5"; export PERL_MM_OPT;
PERL_LOCAL_LIB_ROOT="/$HOME/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"
export PERL_LOCAL_LIB_ROOT
PERL_MB_OPT='--install_base "/$HOME/perl5"'; export PERL_MB_OPT
PERL_MM_OPT="INSTALL_BASE=/$HOME/perl5"; export PERL_MM_OPT
5 changes: 3 additions & 2 deletions bashrc_files/aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ alias manlist=' man -f'
alias men=' man_all_pages'
alias sman=' man -K --regex'
#--------------------------------------------------nvim----------------------------------#
alias getfonts_latex='fc-list :outline -f "%{family}\n"' # https://tex.stackexchange.com/questions/12881/how-to-get-a-list-of-all-available-ttf-fonts-with-xetex
alias nv=' nvim'
alias nvgr=' fd . -tf "${XDG_CONFIG_HOME}/nvim/" -x grep --color="always" -Pi'
alias full_ednv=' fd . -tf -0 "${HOME}/.config/nvim/" "${HOME}/.local/share/nvim/site/ftplugin/" -X nvim -c "Buffers"'
Expand Down Expand Up @@ -148,7 +149,7 @@ alias v=' sc-im'
alias B=' bat'
alias C=' cd ..'
alias P=' readlink -f'
alias W=' whereis'
alias wh=' whereis'
alias klr=' kalker --angle-unit rad'
alias kld=' kalker --angle-unit deg'
alias grf=' grep --file="-" -Fi "${HOME}/.bashrc" "${HOME}/bashrc_files/"* <<<'
Expand Down Expand Up @@ -188,7 +189,7 @@ alias emime=' nvim "${HOME}/.config/mimeapps.list"'
alias ysb=' source "${HOME}/.bashrc"'
alias i3gr=' grep --file="-" -Pri "${HOME}/.config/i3/" <<< '
alias chx=' chmod 700'
alias szof=" du -axhc --time --max-depth=1 | grep -Pv '^0[ \t]' | sort -h"
alias szof=" du -axhc --time --max-depth=1 | sort -h"
alias szofall=' du -ahc --time --max-depth=1'
alias bgsz=' szof | grep -P "^[^ ]*G"'
alias ydl=' cd "${VIDEOS}"; yt-dlp -f "bestvideo[height<=?1080]+bestaudio/best" -o "%(title)s.%(ext)s" --restrict-filename'
Expand Down
10 changes: 7 additions & 3 deletions ctpv/config
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,19 @@ preview log text/x-log {{
}}

preview lisp .txt .lisp .fasl {{
highlight "${f}" --stdout --out-format="ansi"
highlight "${f}" --stdout --out-format="truecolor"
}}

preview jshtml .js .json .html {{
highlight "${f}" --stdout --out-format="ansi"
highlight "${f}" --stdout --out-format="truecolor"
}}

preview lua .lua {{
highlight "${f}" --stdout --out-format="ansi"
highlight "${f}" --stdout --out-format="truecolor"
}}

preview latex .tex {{
highlight "${f}" --stdout --out-format="truecolor"
}}

#preview mymd .md {{
Expand Down
8 changes: 4 additions & 4 deletions kitty/kitty.conf
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@
inactive_tab_font_style normal
# Windows
enabled_layouts tall, grid, vertical, fat
window_margin_width 1
window_padding_width 2
inactive_border_color #333
active_border_color #999
window_margin_width 5
window_padding_width 5
inactive_border_color #555
active_border_color #FF0
window_border_width 1px
# Font
# box_drawing_scale 2, 2, 4, 4
Expand Down
2 changes: 2 additions & 0 deletions nvim/autocmd.vim
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ autocmd BufNewFile *.sh 0read ${HOME}/.config/nvim/language_specific/tem
autocmd BufNewFile *.py 0read ${HOME}/.config/nvim/language_specific/templates/template.py | :silent w | :silent !chmod 700 %
autocmd BufNewFile *.kalker 0read ${HOME}/.config/nvim/language_specific/templates/template.kalker | :silent w | :silent !chmod 700 %
autocmd BufNewFile *.exs 0read ${HOME}/.config/nvim/language_specific/templates/template.exs | :silent w | :silent !chmod 700 %
autocmd BufNewFile *.tex 0read ${HOME}/.config/nvim/language_specific/templates/template.tex | :silent w | :silent !chmod 600 %
autocmd BufNewFile *.ex 0read ${HOME}/.config/nvim/language_specific/templates/template.ex | :silent w | :silent !chmod 600 %
autocmd BufNewFile *.html 0read ${HOME}/.config/nvim/language_specific/templates/template.html | :silent w | :silent !chmod 600 %
autocmd BufNewFile *.cpp 0read ${HOME}/.config/nvim/language_specific/templates/template.cpp | :silent w | :silent !chmod 600 %
Expand All @@ -23,6 +24,7 @@ autocmd BufNewFile,BufRead *.kalker setfiletype kalk
autocmd BufNewFile,BufRead ${HOME}/.config/i3/* setfiletype i3
autocmd BufNewFile,BufRead *.ex,*.exs setfiletype elixir
autocmd BufNewFile,BufRead *.schema setfiletype sql
autocmd BufNewFile,BufRead *.md setfiletype markdown

"autocmd Filetype cpp source ${HOME}/.config/nvim/language_specific/cpp.vim
"autocmd Filetype css source ${HOME}/.config/nvim/language_specific/css.vim
Expand Down
19 changes: 19 additions & 0 deletions nvim/language_specific/templates/template.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

%! TeX program = xelatex

\documentclass[12pt]{scrartcl}
\usepackage{fontspec}
\usepackage{inconsolata}
\usepackage[a4paper, total={8in, 10in}] {geometry}
\usepackage[fleqn]{amsmath}
\usepackage{graphicx}
\usepackage{xfrac}
\usepackage[svgnames]{xcolor}
\setlength{\mathindent}{0pt}
\addtokomafont{section}{\color{MediumBlue}}
\addtokomafont{subsection}{\color{Black}}
\addtokomafont{subsubsection}{\normalfont\itshape\subsubsectionfont}

\begin{document}

\end{document}
16 changes: 7 additions & 9 deletions xorg/SetKeys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
# vi: ft=bash

toggle_r_rate() {
if xset q | grep -q -Pi 'auto[ ]*repeat[:][ ]*on' ; then
xset r off
notify-send -t 3000 $'Keyboard Repeat: \nOff'
else
xset r rate 250 55
notify-send -t 3000 $'Keyboard Repeat: \nOn'
fi
if [[ "${1,,}" != 'on' ]] &&
{ xset q | grep -q -Pi 'auto[ ]*repeat[:][ ]*on'; }
then xset r off
else xset r rate 300 50
fi
notify-send -t 3000 "Keyboard Repeat Toggled"
}

main() {
Expand All @@ -21,8 +20,7 @@ main() {
xset +fp /usr/share/fonts/* 2>/dev/null
xset +fp "${HOME}/.local/share/fonts/"* 2>/dev/null
xset -dpms
xset s off
xset r rate 250 55
toggle_r_rate "on"
fi
#xset r off
##### This turns off mouse acceleration
Expand Down

0 comments on commit db96451

Please sign in to comment.