dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 99f9a228eae7a838fa82a76d9fe96ed3ab127376
parent ac3339ae69cfa9156335068cd39b5fdf0c56c2a4
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed, 19 Jun 2019 13:59:18 +0200

Add spellchecking for latex, update feeds

Diffstat:
M.config/newsboat/urls | 1+
M.config/vis/visrc.lua | 23+++++++++++++++++++++--
2 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/.config/newsboat/urls b/.config/newsboat/urls @@ -138,6 +138,7 @@ https://www.youtube.com/feeds/videos.xml?channel_id=UC8Pksdbj37CdE00kmE7Z1dw you https://www.youtube.com/feeds/videos.xml?channel_id=UC-fHTM9facYaj-EdIBnsPcA youtube photo "~youtube: Fotoimpex" https://www.youtube.com/feeds/videos.xml?channel_id=UC7um6-cvMO_Wn4gPCSCGvJQ youtube photo "~youtube: Cameraville" https://www.youtube.com/feeds/videos.xml?channel_id=UCLfGwQwIzK2tdup4QkXr0Bg youtube photo "~youtube: Azriel Knight" +https://www.youtube.com/feeds/videos.xml?channel_id=UCtiLZhefLrm4CEMrctJyzUQ youtube photo "~youtube: Ben Horne" https://www.youtube.com/feeds/videos.xml?channel_id=UCm9BPmxgO7fW7_lOXl9-mPw youtube "~youtube: Lars Damsgaard Christensen" https://www.youtube.com/feeds/videos.xml?channel_id=UCzFfuU06f327-bnI3lODUNQ youtube "~youtube: LinuxChristian" diff --git a/.config/vis/visrc.lua b/.config/vis/visrc.lua @@ -40,10 +40,14 @@ interpreters = { } checkers = { - ['latex'] = '!tmux split-window -p 25 "shellcheck --color=never $vis_filepath | less"', + ['latex'] = '!tmux split-window -p 25 "chktex -q $vis_filepath | less"', ['bash'] = '!tmux split-window -p 25 "shellcheck --color=never $vis_filepath | less"', } +spellcheckers = { + ['latex'] = '!aspell -t -c $vis_filepath', +} + vis:command_register("prev", function(argv, force, cur_win, selection, range) local file = io.popen('sed -n 2p ~/.mru') local output = file:read() @@ -62,7 +66,8 @@ vis.events.subscribe(vis.events.INIT, function() vis:command('set theme adbasic') vis:map(vis.modes.NORMAL, leader..'B', ':e "$BIB"<Enter>') - vis:map(vis.modes.NORMAL, leader..'C', ':e ~/.config/vis/visrc.lua<Enter>') + vis:map(vis.modes.NORMAL, leader..'CC', ':e ~/.config/vis/visrc.lua<Enter>') + vis:map(vis.modes.NORMAL, leader..'CS', ':e ~/.config/vis/plugins/snippetsv.lua<Enter>') vis:map(vis.modes.NORMAL, leader..'d', ':< date') vis:map(vis.modes.NORMAL, leader..'e', ':fzf true<Enter>') vis:map(vis.modes.NORMAL, leader..'g', ':rg true<Enter>') @@ -102,6 +107,8 @@ vis.events.subscribe(vis.events.WIN_OPEN, function(win) local command = interpreters[vis.win.syntax] if command then vis:command(command) + else + vis:info("no interpreter found for "..vis.win.syntax) end return true; end) @@ -110,6 +117,18 @@ vis.events.subscribe(vis.events.WIN_OPEN, function(win) local command = checkers[vis.win.syntax] if command then vis:command(command) + else + vis:info("no syntax checker found for "..vis.win.syntax) + end + return true; + end) + vis:map(vis.modes.NORMAL, leader..'s', + function() + local command = spellcheckers[vis.win.syntax] + if command then + vis:command(command) + else + vis:info("no spell checker found for "..vis.win.syntax) end return true; end)