mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-11 03:33:03 +03:00
Merge branch 'master' of github.com:SqrtMinusOne/dotfiles
This commit is contained in:
commit
708e302147
23 changed files with 1585 additions and 398 deletions
3
.bashrc
3
.bashrc
|
|
@ -5,6 +5,9 @@ xhost +local:root > /dev/null 2>&1
|
|||
|
||||
use_fish=true
|
||||
|
||||
# ===================== PROGRAMS =====================
|
||||
export MANPAGER="sh -c 'sed -e s/.\\\\x08//g | bat -l man -p'"
|
||||
|
||||
# ===================== PATHS =====================
|
||||
if [ -d "$HOME/bin" ] ; then
|
||||
export PATH="$HOME/bin:$PATH"
|
||||
|
|
|
|||
25
.config/bat/config
Normal file
25
.config/bat/config
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
# This is `bat`s configuration file. Each line either contains a comment or
|
||||
# a command-line option that you want to pass to `bat` by default. You can
|
||||
# run `bat --help` to get a list of all possible configuration options.
|
||||
|
||||
# Specify desired highlighting theme (e.g. "TwoDark"). Run `bat --list-themes`
|
||||
# for a list of all available themes
|
||||
--theme="my_base16"
|
||||
|
||||
# Enable this to use italic text on the terminal. This is not supported on all
|
||||
# terminal emulators (like tmux, by default):
|
||||
#--italic-text=always
|
||||
|
||||
# Uncomment the following line to disable automatic paging:
|
||||
#--paging=never
|
||||
|
||||
# Uncomment the following line if you are using less version >= 551 and want to
|
||||
# enable mouse scrolling support in `bat` when running inside tmux. This might
|
||||
# disable text selection, unless you press shift.
|
||||
#--pager="less --RAW-CONTROL-CHARS --quit-if-one-screen --mouse"
|
||||
|
||||
# Syntax mappings: map a certain filename pattern to a language.
|
||||
# Example 1: use the C++ syntax for .ino files
|
||||
# Example 2: Use ".gitignore"-style highlighting for ".ignore" files
|
||||
#--map-syntax "*.ino:C++"
|
||||
#--map-syntax ".ignore:Git Ignore"
|
||||
548
.config/bat/themes/my_base16.tmTheme
Normal file
548
.config/bat/themes/my_base16.tmTheme
Normal file
|
|
@ -0,0 +1,548 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<!--
|
||||
This theme is meant for users who configure their terminal with a base16
|
||||
color theme. If you use a 256-color variant along with base16-shell, use
|
||||
the bat theme base16-256 instead.
|
||||
base16: https://github.com/chriskempson/base16
|
||||
base16-shell: https://github.com/chriskempson/base16-shell
|
||||
The colors in this theme are encoded as #RRGGBBAA where RR is an ANSI
|
||||
palette number from 00 to 0f (the 8 colors and their bright versions),
|
||||
and AA is the special value 00 to indicate this encoding is being used.
|
||||
-->
|
||||
<key>author</key>
|
||||
<string>Template: Chris Kempson, Scheme: Mitchell Kember</string>
|
||||
<key>name</key>
|
||||
<string>Base16</string>
|
||||
<key>colorSpaceName</key>
|
||||
<string>sRGB</string>
|
||||
<key>settings</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>background</key>
|
||||
<string>#00000000</string>
|
||||
<key>caret</key>
|
||||
<string>#07000000</string>
|
||||
<key>foreground</key>
|
||||
<string>#07000000</string>
|
||||
<key>invisibles</key>
|
||||
<string>#08000000</string>
|
||||
<key>lineHighlight</key>
|
||||
<string>#08000000</string>
|
||||
<key>selection</key>
|
||||
<string>#0b000000</string>
|
||||
<key>gutter</key>
|
||||
<string>#0a000000</string>
|
||||
<key>gutterForeground</key>
|
||||
<string>#07000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Text</string>
|
||||
<key>scope</key>
|
||||
<string>variable.parameter.function</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#07000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Comments</string>
|
||||
<key>scope</key>
|
||||
<string>comment, punctuation.definition.comment</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#05000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Punctuation</string>
|
||||
<key>scope</key>
|
||||
<string>punctuation.definition.string, punctuation.definition.variable, punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.string, punctuation.definition.array</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#07000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Delimiters</string>
|
||||
<key>scope</key>
|
||||
<string>none</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#07000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Operators</string>
|
||||
<key>scope</key>
|
||||
<string>keyword.operator</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#07000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Keywords</string>
|
||||
<key>scope</key>
|
||||
<string>keyword</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#05000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Variables</string>
|
||||
<key>scope</key>
|
||||
<string>variable</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#07000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Functions</string>
|
||||
<key>scope</key>
|
||||
<string>entity.name.function, meta.require, support.function.any-method</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#04000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Labels</string>
|
||||
<key>scope</key>
|
||||
<string>entity.name.label</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#0e000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Classes</string>
|
||||
<key>scope</key>
|
||||
<string>support.class, entity.name.class, entity.name.type.class</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#03000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Classes</string>
|
||||
<key>scope</key>
|
||||
<string>meta.class</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#0f000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Methods</string>
|
||||
<key>scope</key>
|
||||
<string>keyword.other.special-method</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#04000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Storage</string>
|
||||
<key>scope</key>
|
||||
<string>storage</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#05000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Support</string>
|
||||
<key>scope</key>
|
||||
<string>support.function</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#06000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Strings, Inherited Class</string>
|
||||
<key>scope</key>
|
||||
<string>string, constant.other.symbol, entity.other.inherited-class</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#02000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Integers</string>
|
||||
<key>scope</key>
|
||||
<string>constant.numeric</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#09000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Floats</string>
|
||||
<key>scope</key>
|
||||
<string>none</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#09000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Boolean</string>
|
||||
<key>scope</key>
|
||||
<string>none</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#09000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Constants</string>
|
||||
<key>scope</key>
|
||||
<string>constant</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#09000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Tags</string>
|
||||
<key>scope</key>
|
||||
<string>entity.name.tag</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#01000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Attributes</string>
|
||||
<key>scope</key>
|
||||
<string>entity.other.attribute-name</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#09000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Attribute IDs</string>
|
||||
<key>scope</key>
|
||||
<string>entity.other.attribute-name.id, punctuation.definition.entity</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#04000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Selector</string>
|
||||
<key>scope</key>
|
||||
<string>meta.selector</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#05000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Values</string>
|
||||
<key>scope</key>
|
||||
<string>none</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#09000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Headings</string>
|
||||
<key>scope</key>
|
||||
<string>markup.heading punctuation.definition.heading, entity.name.section</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>fontStyle</key>
|
||||
<string></string>
|
||||
<key>foreground</key>
|
||||
<string>#04000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Units</string>
|
||||
<key>scope</key>
|
||||
<string>keyword.other.unit</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#09000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Bold</string>
|
||||
<key>scope</key>
|
||||
<string>markup.bold, punctuation.definition.bold</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>fontStyle</key>
|
||||
<string>bold</string>
|
||||
<key>foreground</key>
|
||||
<string>#03000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Italic</string>
|
||||
<key>scope</key>
|
||||
<string>markup.italic, punctuation.definition.italic</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>fontStyle</key>
|
||||
<string>italic</string>
|
||||
<key>foreground</key>
|
||||
<string>#05000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Code</string>
|
||||
<key>scope</key>
|
||||
<string>markup.raw.inline</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#02000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Link Text</string>
|
||||
<key>scope</key>
|
||||
<string>string.other.link, punctuation.definition.string.end.markdown, punctuation.definition.string.begin.markdown</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#01000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Link Url</string>
|
||||
<key>scope</key>
|
||||
<string>meta.link</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#09000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Quotes</string>
|
||||
<key>scope</key>
|
||||
<string>markup.quote</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#09000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Separator</string>
|
||||
<key>scope</key>
|
||||
<string>meta.separator</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>background</key>
|
||||
<string>#0b000000</string>
|
||||
<key>foreground</key>
|
||||
<string>#07000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Inserted</string>
|
||||
<key>scope</key>
|
||||
<string>markup.inserted</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#02000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Deleted</string>
|
||||
<key>scope</key>
|
||||
<string>markup.deleted</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#01000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Changed</string>
|
||||
<key>scope</key>
|
||||
<string>markup.changed</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#05000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Colors</string>
|
||||
<key>scope</key>
|
||||
<string>constant.other.color</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#06000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Regular Expressions</string>
|
||||
<key>scope</key>
|
||||
<string>string.regexp</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#06000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Escape Characters</string>
|
||||
<key>scope</key>
|
||||
<string>constant.character.escape</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#06000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Embedded</string>
|
||||
<key>scope</key>
|
||||
<string>punctuation.section.embedded, variable.interpolation</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#05000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Illegal</string>
|
||||
<key>scope</key>
|
||||
<string>invalid.illegal</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>background</key>
|
||||
<string>#01000000</string>
|
||||
<key>foreground</key>
|
||||
<string>#0f000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Broken</string>
|
||||
<key>scope</key>
|
||||
<string>invalid.broken</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>background</key>
|
||||
<string>#09000000</string>
|
||||
<key>foreground</key>
|
||||
<string>#00000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Deprecated</string>
|
||||
<key>scope</key>
|
||||
<string>invalid.deprecated</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>background</key>
|
||||
<string>#0e000000</string>
|
||||
<key>foreground</key>
|
||||
<string>#0f000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Unimplemented</string>
|
||||
<key>scope</key>
|
||||
<string>invalid.unimplemented</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>background</key>
|
||||
<string>#08000000</string>
|
||||
<key>foreground</key>
|
||||
<string>#0f000000</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</array>
|
||||
<key>uuid</key>
|
||||
<string>uuid</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
@ -385,8 +385,9 @@ exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
|||
exec_always "feh --bg-fill ~/Pictures/wallpaper-2.jpg"
|
||||
# exec_always "/home/pavel/bin/scripts/wallgif /home/pavel/Videos/OMSBG7.mov"
|
||||
|
||||
# Compton
|
||||
exec compton
|
||||
# Picom
|
||||
exec picom
|
||||
exec keynav
|
||||
|
||||
# Some scripts
|
||||
exec_always --no-startup-id set_layout
|
||||
|
|
|
|||
40
.config/keynav/keynavrc
Normal file
40
.config/keynav/keynavrc
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
clear
|
||||
ctrl+semicolon start
|
||||
Super_L+bracketright start
|
||||
Super_R+bracketright start
|
||||
Escape end
|
||||
ctrl+bracketleft end
|
||||
q record ~/.keynav_macros
|
||||
shift+at playback
|
||||
a history-back
|
||||
Left cut-left
|
||||
Right cut-right
|
||||
Down cut-down
|
||||
Up cut-up
|
||||
h cut-left
|
||||
j cut-down
|
||||
k cut-up
|
||||
l cut-right
|
||||
shift+h move-left
|
||||
shift+j move-down
|
||||
shift+k move-up
|
||||
shift+l move-right
|
||||
shift+Left move-left
|
||||
shift+Right move-right
|
||||
shift+Up move-up
|
||||
shift+Down move-down
|
||||
space warp,click 3,end
|
||||
Return warp,click 1,end
|
||||
Shift+Return warp,doubleclick 1,end
|
||||
semicolon warp,end
|
||||
w warp
|
||||
t windowzoom
|
||||
c cursorzoom 300 300
|
||||
e end
|
||||
u warp,click 4
|
||||
d warp,click 5
|
||||
1 click 1
|
||||
2 click 2
|
||||
3 click 3
|
||||
4 click 4
|
||||
5 click 5
|
||||
|
|
@ -103,7 +103,10 @@ fade-out-step = 0.03;
|
|||
# fade-delta = 10
|
||||
|
||||
# Specify a list of conditions of windows that should not be faded.
|
||||
# fade-exclude = []
|
||||
fade-exclude = [
|
||||
"class_i = 'keynav'",
|
||||
"class_g = 'keynav'",
|
||||
]
|
||||
|
||||
# Do not fade on window open/close.
|
||||
# no-fading-openclose = false
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
.config/newsboat/urls
|
||||
.config/filezilla/sitemanager.xml
|
||||
.config/filezilla/filezilla.xml
|
||||
Mail/thexcloud/.credentials.gmailieer.json
|
||||
Mail/thexcloud/.credentials.gmailieer.json
|
||||
Mail/progin6304/.credentials.gmailieer.json
|
||||
.wegorc
|
||||
Binary file not shown.
|
|
@ -3,15 +3,30 @@
|
|||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
;; Your init file should contain only one such instance.
|
||||
;; If there is more than one, they won't work right.
|
||||
'(aweshell-auto-suggestion-p nil)
|
||||
'(aweshell-invalid-command-color "#f07178")
|
||||
'(aweshell-search-history-key "C-r")
|
||||
'(aweshell-valid-command-color "#c3e88d")
|
||||
'(css-indent-offset 2)
|
||||
'(custom-safe-themes
|
||||
'("aaa4c36ce00e572784d424554dcc9641c82d1155370770e231e10c649b59a074" "c83c095dd01cde64b631fb0fe5980587deec3834dc55144a6e78ff91ebc80b19" "bf387180109d222aee6bb089db48ed38403a1e330c9ec69fe1f52460a8936b66" "e074be1c799b509f52870ee596a5977b519f6d269455b84ed998666cf6fc802a" default))
|
||||
'(dired-recursive-copies 'always)
|
||||
'(doom-modeline-env-enable-python nil)
|
||||
'(jest-test-options '("--color" "--runInBand" "--forceExit"))
|
||||
'(js-indent-level 2)
|
||||
'(notmuch-saved-searches
|
||||
'((:name "inbox (main)" :query "tag:inbox AND tag:main")
|
||||
(:name "unread (main)" :query "tag:unread AND tag:main")
|
||||
(:name "sent (main)" :query "tag:sent AND tag:main")
|
||||
(:name "all mail (main)" :query "tag:main")
|
||||
(:name "inbox (progin)" :query "tag:inbox AND tag:progin")
|
||||
(:name "unread (progin)" :query "tag:unread AND tag:progin")
|
||||
(:name "sent (progin)" :query "tag:sent AND tag:progin")
|
||||
(:name "all main (progin)" :query "tag:progin")
|
||||
(:name "drafts" :query "tag:draft")))
|
||||
'(notmuch-search-oldest-first nil)
|
||||
'(org-agenda-files
|
||||
'("~/Documents/org-mode/ETU/r&d.org" "~/Documents/org-mode/Personal/misc.org" "~/Documents/org-mode/Job/dig-traject.org" "~/Documents/org-mode/Personal/look-forward.org" "~/Documents/org-mode/ETU/sem-9.org"))
|
||||
'("~/Documents/org-mode/ETU/sem-10.org" "~/Documents/org-mode/ETU/r&d.org" "~/Documents/org-mode/Personal/misc.org" "~/Documents/org-mode/Job/dig-traject.org" "~/Documents/org-mode/Personal/look-forward.org" "~/Documents/org-mode/ETU/sem-9.org"))
|
||||
'(send-mail-function 'smtpmail-send-it)
|
||||
'(sgml-basic-offset 2)
|
||||
'(smtpmail-smtp-server "smtp.gmail.com")
|
||||
|
|
@ -25,4 +40,11 @@
|
|||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
;; Your init file should contain only one such instance.
|
||||
;; If there is more than one, they won't work right.
|
||||
)
|
||||
'(aweshell-alert-buffer-face ((t (:foreground "#f07178" :weight bold))))
|
||||
'(aweshell-alert-command-face ((t (:foreground "#ffcb6b" :weight bold))))
|
||||
'(epe-pipeline-delimiter-face ((t (:foreground "#c3e88d"))))
|
||||
'(epe-pipeline-host-face ((t (:foreground "#82aaff"))))
|
||||
'(epe-pipeline-time-face ((t (:foreground "#ffcb6b"))))
|
||||
'(epe-pipeline-user-face ((t (:foreground "#f07178"))))
|
||||
'(tab-bar ((t (:background "#242837" :foreground "#242837"))))
|
||||
'(tab-bar-tab ((t (:background "#292D3E" :foreground "#ffcb6b" :underline "#ffcb6b")))))
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
568
.emacs.d/init.el
568
.emacs.d/init.el
|
|
@ -1,3 +1,11 @@
|
|||
(add-hook 'emacs-startup-hook
|
||||
(lambda ()
|
||||
(message "*** Emacs loaded in %s with %d garbage collections."
|
||||
(format "%.2f seconds"
|
||||
(float-time
|
||||
(time-subtract after-init-time before-init-time)))
|
||||
gcs-done)))
|
||||
|
||||
(defvar bootstrap-version)
|
||||
(let ((bootstrap-file
|
||||
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
|
||||
|
|
@ -13,6 +21,7 @@
|
|||
|
||||
(straight-use-package 'use-package)
|
||||
(eval-when-compile (require 'use-package))
|
||||
(setq use-package-verbose t)
|
||||
|
||||
(setq my/lowpower (string= (system-name) "pntk"))
|
||||
|
||||
|
|
@ -111,30 +120,48 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
)
|
||||
|
||||
(use-package evil-numbers
|
||||
:straight t)
|
||||
:straight t
|
||||
:commands (evil-numbers/inc-at-pt evil-numbers/dec-at-pt))
|
||||
|
||||
(use-package evil-surround
|
||||
:straight t
|
||||
:after evil
|
||||
:config
|
||||
(global-evil-surround-mode 1))
|
||||
|
||||
(use-package evil-commentary
|
||||
:straight t
|
||||
:after evil
|
||||
:config
|
||||
(evil-commentary-mode))
|
||||
|
||||
(use-package evil-collection
|
||||
:straight t
|
||||
:after evil
|
||||
:config
|
||||
(evil-collection-init '(eww dired company vterm flycheck profiler cider explain-pause-mode notmuch custom)))
|
||||
(evil-collection-init
|
||||
'(eww
|
||||
dired
|
||||
company
|
||||
vterm
|
||||
flycheck
|
||||
profiler
|
||||
cider
|
||||
explain-pause-mode
|
||||
notmuch
|
||||
custom
|
||||
xref
|
||||
eshell
|
||||
helpful
|
||||
compile
|
||||
comint)))
|
||||
|
||||
(use-package evil-quickscope
|
||||
:straight t
|
||||
:after evil
|
||||
:config
|
||||
:hook (
|
||||
(prog-mode . turn-on-evil-quickscope-mode)
|
||||
(LaTeX-mode . turn-on-evil-quickscope-mode)
|
||||
))
|
||||
:hook ((prog-mode . turn-on-evil-quickscope-mode)
|
||||
(LaTeX-mode . turn-on-evil-quickscope-mode)))
|
||||
|
||||
(general-create-definer my-leader-def
|
||||
:prefix "SPC"
|
||||
|
|
@ -155,6 +182,15 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
(my-leader-def "Pe" 'profiler-stop)
|
||||
(my-leader-def "Pp" 'profiler-report)
|
||||
|
||||
(use-package helpful
|
||||
:straight t
|
||||
:commands (helpful-callable
|
||||
helpful-variable
|
||||
helpful-key
|
||||
helpful-macro
|
||||
helpful-function
|
||||
helpful-command))
|
||||
|
||||
(my-leader-def
|
||||
:infix "h"
|
||||
"RET" 'view-order-manuals
|
||||
|
|
@ -172,11 +208,11 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
"c" 'describe-key-briefly
|
||||
"d" 'apropos-documentation
|
||||
"e" 'view-echo-area-messages
|
||||
"f" 'describe-function
|
||||
"f" 'helpful-function
|
||||
"g" 'describe-gnu-project
|
||||
"h" 'view-hello-file
|
||||
"i" 'info
|
||||
"k" 'describe-key
|
||||
"k" 'helpful-key
|
||||
"l" 'view-lossage
|
||||
"m" 'describe-mode
|
||||
"n" 'view-emacs-news
|
||||
|
|
@ -186,7 +222,7 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
"r" 'info-emacs-manual
|
||||
"s" 'describe-syntax
|
||||
"t" 'help-with-tutorial
|
||||
"v" 'describe-variable
|
||||
"v" 'helpful-variable
|
||||
"w" 'where-is
|
||||
"<f1>" 'help-for-help
|
||||
"C-\\" 'describe-input-method
|
||||
|
|
@ -201,8 +237,7 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
"C-p" 'view-emacs-problems
|
||||
"C-s" 'search-forward-help-for-help
|
||||
"C-t" 'view-emacs-todo
|
||||
"C-w" 'describe-no-warranty
|
||||
)
|
||||
"C-w" 'describe-no-warranty)
|
||||
|
||||
(general-define-key
|
||||
:keymaps 'override
|
||||
|
|
@ -252,15 +287,20 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
:config
|
||||
(global-undo-tree-mode)
|
||||
(setq undo-tree-visualizer-diff t)
|
||||
(setq undo-tree-visualizer-timestamps t))
|
||||
(setq undo-tree-visualizer-timestamps t)
|
||||
|
||||
(my-leader-def "u" 'undo-tree-visualize)
|
||||
(fset 'undo-auto-amalgamate 'ignore)
|
||||
(setq undo-limit 6710886400)
|
||||
(setq undo-strong-limit 100663296)
|
||||
(setq undo-outer-limit 1006632960))
|
||||
|
||||
(general-nmap
|
||||
"gD" 'xref-find-definitions-other-window
|
||||
"gr" 'xref-find-references)
|
||||
|
||||
(my-leader-def
|
||||
"u" 'undo-tree-visualize)
|
||||
|
||||
(fset 'undo-auto-amalgamate 'ignore)
|
||||
(setq undo-limit 6710886400)
|
||||
(setq undo-strong-limit 100663296)
|
||||
(setq undo-outer-limit 1006632960)
|
||||
"fx" 'xref-find-apropos)
|
||||
|
||||
(use-package ivy
|
||||
:straight t
|
||||
|
|
@ -270,18 +310,21 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
|
||||
(use-package counsel
|
||||
:straight t
|
||||
:after ivy
|
||||
:config
|
||||
(counsel-mode))
|
||||
|
||||
(use-package swiper
|
||||
:defer t
|
||||
:straight t)
|
||||
|
||||
(use-package ivy-rich
|
||||
:straight t
|
||||
:after ivy
|
||||
:config
|
||||
(ivy-rich-mode 1)
|
||||
(setcdr (assq t ivy-format-functions-alist) #'ivy-format-function-line))
|
||||
|
||||
|
||||
(my-leader-def
|
||||
:infix "f"
|
||||
"b" 'ivy-switch-buffer
|
||||
|
|
@ -292,6 +335,9 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
"A" 'counsel-ag
|
||||
)
|
||||
|
||||
(general-imap
|
||||
"C-y" 'counsel-yank-pop)
|
||||
|
||||
(my-leader-def "SPC" 'ivy-resume)
|
||||
(my-leader-def "s" 'swiper-isearch
|
||||
"S" 'swiper-all)
|
||||
|
|
@ -306,6 +352,7 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
|
||||
(use-package treemacs
|
||||
:straight t
|
||||
:commands (treemacs treemacs-switch-workspace treemacs-edit-workspace)
|
||||
:config
|
||||
(setq treemacs-follow-mode nil)
|
||||
(setq treemacs-follow-after-init nil)
|
||||
|
|
@ -315,6 +362,7 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
(add-to-list 'treemacs-pre-file-insert-predicates #'treemacs-is-file-git-ignored?)))
|
||||
|
||||
(use-package treemacs-evil
|
||||
:after (treemacs evil)
|
||||
:straight t)
|
||||
|
||||
(use-package treemacs-magit
|
||||
|
|
@ -344,9 +392,11 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
;; (setq projectile-completion-system 'helm))
|
||||
|
||||
(use-package counsel-projectile
|
||||
:after (counsel projectile)
|
||||
:straight t)
|
||||
|
||||
(use-package treemacs-projectile
|
||||
:after (treemacs projectile)
|
||||
:straight t)
|
||||
|
||||
(my-leader-def
|
||||
|
|
@ -375,6 +425,7 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
|
||||
(use-package magit
|
||||
:straight t
|
||||
:commands (magit-status magit-file-dispatch)
|
||||
:config
|
||||
(setq magit-blame-styles
|
||||
'((margin
|
||||
|
|
@ -397,6 +448,7 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
(global-git-gutter-mode +1))
|
||||
|
||||
(use-package evil-magit
|
||||
:after (magit)
|
||||
:straight t)
|
||||
|
||||
(my-leader-def
|
||||
|
|
@ -455,7 +507,8 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
(editorconfig-mode 1))
|
||||
|
||||
(use-package avy
|
||||
:straight t)
|
||||
:straight t
|
||||
:defer t)
|
||||
|
||||
(general-nmap "\\\\w" 'avy-goto-word-0-below)
|
||||
(general-nmap "\\\\b" 'avy-goto-word-0-above)
|
||||
|
|
@ -487,9 +540,13 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
:config
|
||||
(global-activity-watch-mode))
|
||||
|
||||
(use-package no-littering
|
||||
:straight t)
|
||||
|
||||
(use-package dired
|
||||
:ensure nil
|
||||
:custom ((dired-listing-switches "-alh --group-directories-first"))
|
||||
:commands (dired)
|
||||
:config
|
||||
(setq dired-dwim-target t)
|
||||
(setq wdired-allow-to-change-permissions t)
|
||||
|
|
@ -508,47 +565,86 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
"=" 'dired-narrow
|
||||
"-" 'dired-create-empty-file
|
||||
(kbd "<left>") 'dired-single-up-directory
|
||||
(kbd "<right>") 'dired-single-buffer))
|
||||
(kbd "<right>") 'dired-single-buffer)
|
||||
(general-define-key
|
||||
:keymaps 'dired-mode-map
|
||||
[remap dired-find-file] 'dired-single-buffer
|
||||
[remap dired-mouse-find-file-other-window] 'dired-single-buffer-mouse
|
||||
[remap dired-up-directory] 'dired-single-up-directory
|
||||
"M-<return>" 'dired-open-xdg))
|
||||
|
||||
(use-package dired+
|
||||
:straight t
|
||||
:after dired
|
||||
:init
|
||||
(setq diredp-hide-details-initially-flag nil))
|
||||
|
||||
(use-package dired-single
|
||||
:after dired
|
||||
:straight t)
|
||||
|
||||
(use-package all-the-icons-dired
|
||||
:straight t
|
||||
:if (not my/lowpower)
|
||||
:after dired
|
||||
:config
|
||||
(add-hook 'dired-mode-hook 'all-the-icons-dired-mode)
|
||||
(advice-add 'dired-add-entry :around #'all-the-icons-dired--refresh-advice)
|
||||
(advice-add 'dired-remove-entry :around #'all-the-icons-dired--refresh-advice))
|
||||
|
||||
(use-package dired-open
|
||||
:after dired
|
||||
:straight t)
|
||||
|
||||
(use-package dired-narrow
|
||||
:straight t)
|
||||
:after dired
|
||||
:straight t
|
||||
:config
|
||||
(general-define-key
|
||||
:keymaps 'dired-narrow-map
|
||||
[escape] 'keyboard-quit))
|
||||
|
||||
(my-leader-def "ad" 'dired)
|
||||
|
||||
(general-define-key
|
||||
:keymaps 'dired-mode-map
|
||||
[remap dired-find-file] 'dired-single-buffer
|
||||
[remap dired-mouse-find-file-other-window] 'dired-single-buffer-mouse
|
||||
[remap dired-up-directory] 'dired-single-up-directory
|
||||
"M-<return>" 'dired-open-xdg)
|
||||
|
||||
(general-define-key
|
||||
:keymaps 'dired-narrow-map
|
||||
[escape] 'keyboard-quit)
|
||||
|
||||
(use-package vterm
|
||||
:straight t
|
||||
:commands (vterm vterm-other-window)
|
||||
:config
|
||||
(setq vterm-kill-buffer-on-exit t))
|
||||
(setq vterm-kill-buffer-on-exit t)
|
||||
|
||||
(add-hook 'vterm-mode-hook
|
||||
(lambda ()
|
||||
(setq-local global-display-line-numbers-mode nil)
|
||||
(display-line-numbers-mode 0)
|
||||
))
|
||||
|
||||
(general-define-key
|
||||
:keymaps 'vterm-mode-map
|
||||
"M-q" 'vterm-send-escape
|
||||
|
||||
"C-h" 'evil-window-left
|
||||
"C-l" 'evil-window-right
|
||||
"C-k" 'evil-window-up
|
||||
"C-j" 'evil-window-down
|
||||
|
||||
"C-<right>" 'evil-window-right
|
||||
"C-<left>" 'evil-window-left
|
||||
"C-<up>" 'evil-window-up
|
||||
"C-<down>" 'evil-window-down
|
||||
|
||||
"M-<left>" 'vterm-send-left
|
||||
"M-<right>" 'vterm-send-right
|
||||
"M-<up>" 'vterm-send-up
|
||||
"M-<down>" 'vterm-send-down)
|
||||
|
||||
(general-imap
|
||||
:keymaps 'vterm-mode-map
|
||||
"C-r" 'vterm-send-C-r
|
||||
"C-k" 'vterm-send-C-k
|
||||
"C-j" 'vterm-send-C-j
|
||||
"M-l" 'vterm-send-right
|
||||
"M-h" 'vterm-send-left)
|
||||
)
|
||||
|
||||
(add-to-list 'display-buffer-alist
|
||||
`(,"vterm-subterminal.*"
|
||||
|
|
@ -558,7 +654,7 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
(reusable-frames . visible)
|
||||
(window-height . 0.33)))
|
||||
|
||||
(defun toggle-vterm-subteminal ()
|
||||
(defun my/toggle-vterm-subteminal ()
|
||||
"Toogle subteminal."
|
||||
(interactive)
|
||||
(let
|
||||
|
|
@ -575,46 +671,43 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
(kill-buffer (current-buffer))
|
||||
(select-window vterm-window)
|
||||
)
|
||||
(vterm-other-window "vterm-subterminal")
|
||||
)
|
||||
)
|
||||
)
|
||||
(vterm-other-window "vterm-subterminal"))))
|
||||
|
||||
(general-nmap "`" 'toggle-vterm-subteminal)
|
||||
(general-nmap "`" 'my/toggle-vterm-subteminal)
|
||||
(general-nmap "~" 'vterm)
|
||||
|
||||
(add-hook 'vterm-mode-hook
|
||||
(lambda ()
|
||||
(setq-local global-display-line-numbers-mode nil)
|
||||
(display-line-numbers-mode 0)
|
||||
))
|
||||
(defun my/configure-eshell ()
|
||||
(add-hook 'eshell-pre-command-hook 'eshell-save-some-history)
|
||||
(add-to-list 'eshell-output-filter-functions 'eshell-truncate-buffer)
|
||||
(setq eshell-history-size 10000)
|
||||
(setq eshell-hist-ingnoredups t)
|
||||
(setq eshell-buffer-maximum-lines 10000)
|
||||
|
||||
(evil-define-key '(normal insert visual) eshell-mode-map (kbd "<home>") 'eshell-bol)
|
||||
(evil-define-key '(normal insert visual) eshell-mode-map (kbd "C-r") 'counsel-esh-history)
|
||||
(evil-collection-define-key 'normal 'eshell-mode-map
|
||||
(kbd "C-h") 'evil-window-left
|
||||
(kbd "C-l") 'evil-window-right
|
||||
(kbd "C-k") 'evil-window-up
|
||||
(kbd "C-j") 'evil-window-down))
|
||||
|
||||
(general-define-key
|
||||
:keymaps 'vterm-mode-map
|
||||
"M-q" 'vterm-send-escape
|
||||
(use-package eshell
|
||||
:ensure nil
|
||||
:after evil-collection
|
||||
:commands (eshell)
|
||||
:config
|
||||
(add-hook 'eshell-first-time-mode-hook 'my/configure-eshell 90)
|
||||
(setq eshell-banner-message ""))
|
||||
|
||||
(use-package aweshell
|
||||
:straight (:repo "manateelazycat/aweshell" :host github)
|
||||
:after eshell
|
||||
:config
|
||||
(setq eshell-highlight-prompt nil)
|
||||
(setq eshell-prompt-function 'epe-theme-pipeline))
|
||||
|
||||
"C-h" 'evil-window-left
|
||||
"C-l" 'evil-window-right
|
||||
"C-k" 'evil-window-up
|
||||
"C-j" 'evil-window-down
|
||||
|
||||
"C-<right>" 'evil-window-right
|
||||
"C-<left>" 'evil-window-left
|
||||
"C-<up>" 'evil-window-up
|
||||
"C-<down>" 'evil-window-down
|
||||
|
||||
"M-<left>" 'vterm-send-left
|
||||
"M-<right>" 'vterm-send-right
|
||||
"M-<up>" 'vterm-send-up
|
||||
"M-<down>" 'vterm-send-down)
|
||||
|
||||
(general-imap
|
||||
:keymaps 'vterm-mode-map
|
||||
"C-r" 'vterm-send-C-r
|
||||
"C-k" 'vterm-send-C-k
|
||||
"C-j" 'vterm-send-C-j
|
||||
"M-l" 'vterm-send-right
|
||||
"M-h" 'vterm-send-left)
|
||||
;; (general-nmap "`" 'aweshell-dedicated-toggle)
|
||||
;; (general-nmap "~" 'eshell)
|
||||
|
||||
(straight-override-recipe
|
||||
'(org :repo "emacsmirror/org" :no-build t))
|
||||
|
|
@ -656,12 +749,14 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
'((emacs-lisp . t)
|
||||
(python . t)
|
||||
;; (typescript .t)
|
||||
(shell . t)
|
||||
(jupyter . t)))
|
||||
|
||||
(org-babel-jupyter-override-src-block "python")
|
||||
|
||||
(use-package ob-async
|
||||
:straight t
|
||||
:after (org)
|
||||
:config
|
||||
(setq ob-async-no-async-languages-alist '("python" "jupyter-python")))
|
||||
|
||||
|
|
@ -701,6 +796,10 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
(with-eval-after-load 'ox-latex
|
||||
(my/setup-org-latex))
|
||||
|
||||
(use-package ox-hugo
|
||||
:straight t
|
||||
:after ox)
|
||||
|
||||
(general-define-key
|
||||
:keymaps 'org-mode-map
|
||||
"C-c d" 'org-decrypt-entry
|
||||
|
|
@ -735,9 +834,19 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
|
||||
(use-package org-superstar
|
||||
:straight t
|
||||
:after (org)
|
||||
:config
|
||||
(add-hook 'org-mode-hook (lambda () (org-superstar-mode 1)))
|
||||
)
|
||||
(add-hook 'org-mode-hook (lambda () (org-superstar-mode 1))))
|
||||
|
||||
(setq org-agenda-category-icon-alist `(
|
||||
("work" ,(list (all-the-icons-faicon "cog")) nil nil :ascent center)
|
||||
("lesson" ,(list (all-the-icons-faicon "book")) nil nil :ascent center)
|
||||
("education" ,(list (all-the-icons-material "build")) nil nil :ascent center)
|
||||
("meeting" ,(list (all-the-icons-material "chat")) nil nil :ascent center)
|
||||
("music" ,(list (all-the-icons-faicon "music")) nil nil :ascent center)
|
||||
("misc" ,(list (all-the-icons-material "archive")) nil nil :ascent center)
|
||||
("event" ,(list (all-the-icons-octicon "clock")) nil nil :ascent center)
|
||||
))
|
||||
|
||||
(setq org-startup-indented t)
|
||||
|
||||
|
|
@ -819,10 +928,45 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
(general-nmap "gn" 'tab-new)
|
||||
(general-nmap "gN" 'tab-close)
|
||||
|
||||
(setq my/project-title-separators "[-_ ]")
|
||||
|
||||
(defun my/shorten-project-name-elem (elem crop)
|
||||
(if (string-match "^\\[.*\\]$" elem)
|
||||
(concat "["
|
||||
(my/shorten-project-name-elem (substring elem 1 (- (length elem) 1)) crop)
|
||||
"]")
|
||||
(let ((prefix (car (s-match my/project-title-separators elem))))
|
||||
(let ((rest
|
||||
(substring
|
||||
(if prefix
|
||||
(substring elem (length prefix))
|
||||
elem)
|
||||
0 (if crop 1 nil))
|
||||
))
|
||||
(concat prefix rest))
|
||||
)))
|
||||
|
||||
(defun my/shorten-project-name (project-name)
|
||||
(let ((elems (s-slice-at my/project-title-separators project-name)))
|
||||
(concat
|
||||
(apply
|
||||
#'concat
|
||||
(cl-mapcar (lambda (elem) (my/shorten-project-name-elem elem t)) (butlast elems)))
|
||||
(my/shorten-project-name-elem (car (last elems)) nil))))
|
||||
|
||||
(defun my/tab-bar-name-function ()
|
||||
(let ((project-name (projectile-project-name)))
|
||||
(if (string= "-" project-name)
|
||||
(tab-bar-tab-name-current-with-count)
|
||||
(concat "[" (my/shorten-project-name project-name) "] " (tab-bar-tab-name-current-with-count)))))
|
||||
|
||||
(setq tab-bar-tab-name-function #'my/tab-bar-name-function)
|
||||
|
||||
(use-package doom-modeline
|
||||
:straight t
|
||||
:init
|
||||
(setq doom-modeline-env-enable-python nil)
|
||||
(setq doom-modeline-env-enable-go nil)
|
||||
:config
|
||||
(doom-modeline-mode 1)
|
||||
(setq doom-modeline-minor-modes nil)
|
||||
|
|
@ -878,14 +1022,26 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
(use-package rainbow-delimiters
|
||||
:straight t
|
||||
:if (not my/lowpower)
|
||||
:config
|
||||
(add-hook 'org-mode-hook #'rainbow-delimiters-mode)
|
||||
(add-hook 'prog-mode-hook #'rainbow-delimiters-mode))
|
||||
:hook (
|
||||
(prog-mode . rainbow-delimiters-mode)))
|
||||
|
||||
(use-package ligature
|
||||
:straight (:host github :repo "mickeynp/ligature.el")
|
||||
:config
|
||||
(ligature-set-ligatures 'prog-mode
|
||||
(ligature-set-ligatures '(
|
||||
typescript-mode
|
||||
js2-mode
|
||||
vue-mode
|
||||
svelte-mode
|
||||
scss-mode
|
||||
php-mode
|
||||
python-mode
|
||||
LaTeX-mode
|
||||
markdown-mode
|
||||
clojure-mode
|
||||
go-mode
|
||||
sh-mode
|
||||
haskell-mode)
|
||||
'("--" "---" "==" "===" "!=" "!==" "=!=" "=:=" "=/=" "<="
|
||||
">=" "&&" "&&&" "&=" "++" "+++" "***" ";;" "!!" "??"
|
||||
"?:" "?." "?=" "<:" ":<" ":>" ">:" "<>" "<<<" ">>>"
|
||||
|
|
@ -922,19 +1078,6 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
(global-set-key (kbd "C-+") 'zoom-in)
|
||||
(global-set-key (kbd "C-=") 'zoom-out)
|
||||
|
||||
;; Transparency
|
||||
;; (defun toggle-transparency ()
|
||||
;; (interactive)
|
||||
;; (let ((alpha (frame-parameter nil 'alpha)))
|
||||
;; (set-frame-parameter
|
||||
;; nil 'alpha
|
||||
;; (if (eql (cond ((numberp alpha) alpha)
|
||||
;; ((numberp (cdr alpha)) (cdr alpha))
|
||||
;; ((numberp (cadr alpha)) (cadr alpha)))
|
||||
;; 100)
|
||||
;; '(95 . 95) '(100 . 100)))))
|
||||
;; (my-leader-def "dt" 'toggle-transparency)
|
||||
|
||||
(setq scroll-conservatively scroll-margin)
|
||||
(setq scroll-step 1)
|
||||
(setq scroll-preserve-screen-position t)
|
||||
|
|
@ -949,7 +1092,11 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
(setq auto-save-default nil)
|
||||
|
||||
(use-package notmuch
|
||||
:ensure nil)
|
||||
:ensure nil
|
||||
:commands (notmuch)
|
||||
:config
|
||||
(add-hook 'notmuch-hello-mode-hook
|
||||
(lambda () (display-line-numbers-mode 0))))
|
||||
|
||||
(my-leader-def "am" 'notmuch)
|
||||
|
||||
|
|
@ -963,7 +1110,8 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
(python-mode . lsp)
|
||||
(json-mode . lsp)
|
||||
(haskell-mode . lsp)
|
||||
(haskell-literate-mode . lsp))
|
||||
(haskell-literate-mode . lsp)
|
||||
(java-mode . lsp))
|
||||
:commands lsp
|
||||
:config
|
||||
(setq lsp-idle-delay 1)
|
||||
|
|
@ -972,8 +1120,7 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
(setq lsp-signature-render-documentation nil)
|
||||
; (lsp-headerline-breadcrumb-mode nil)
|
||||
(setq lsp-headerline-breadcrumb-enable nil)
|
||||
(add-to-list 'lsp-language-id-configuration '(svelte-mode . "svelte"))
|
||||
)
|
||||
(add-to-list 'lsp-language-id-configuration '(svelte-mode . "svelte")))
|
||||
|
||||
(use-package lsp-ui
|
||||
:straight t
|
||||
|
|
@ -1027,59 +1174,18 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
(window-height . 0.33)))
|
||||
)
|
||||
|
||||
(use-package dap-mode
|
||||
:straight t
|
||||
:defer t
|
||||
:init
|
||||
(setq lsp-enable-dap-auto-configure nil)
|
||||
:config
|
||||
|
||||
(setq dap-ui-variable-length 100)
|
||||
(require 'dap-node)
|
||||
(dap-node-setup)
|
||||
|
||||
(require 'dap-chrome)
|
||||
(dap-chrome-setup)
|
||||
|
||||
(require 'dap-python)
|
||||
|
||||
(dap-mode 1)
|
||||
(dap-ui-mode 1)
|
||||
(dap-tooltip-mode 1)
|
||||
(tooltip-mode 1)
|
||||
(dap-ui-controls-mode 1))
|
||||
|
||||
(my-leader-def
|
||||
:infix "d"
|
||||
"d" 'dap-debug
|
||||
"b" 'dap-breakpoint-toggle
|
||||
"c" 'dap-breakpoint-condition
|
||||
"wl" 'dap-ui-locals
|
||||
"wb" 'dap-ui-breakpoints
|
||||
"wr" 'dap-ui-repl
|
||||
"ws" 'dap-ui-sessions
|
||||
"we" 'dap-ui-expressions
|
||||
)
|
||||
|
||||
(my-leader-def
|
||||
:infix "d"
|
||||
:keymaps 'dap-mode-map
|
||||
"h" 'dap-hydra
|
||||
)
|
||||
|
||||
(defun my/dap-yank-value-at-point (node)
|
||||
(interactive (list (treemacs-node-at-point)))
|
||||
(kill-new (message (plist-get (button-get node :item) :value))))
|
||||
|
||||
(use-package typescript-mode
|
||||
:straight t)
|
||||
|
||||
(add-hook 'typescript-mode-hook #'smartparens-mode)
|
||||
(defun my/set-smartparens-indent (mode)
|
||||
(sp-local-pair mode "{" nil :post-handlers '(("|| " "SPC") ("||\n[i]" "RET")))
|
||||
(sp-local-pair mode "[" nil :post-handlers '(("|| " "SPC") ("||\n[i]" "RET")))
|
||||
)
|
||||
(my/set-smartparens-indent 'typescript-mode)
|
||||
(sp-local-pair mode "(" nil :post-handlers '(("|| " "SPC") ("||\n[i]" "RET"))))
|
||||
|
||||
(use-package typescript-mode
|
||||
:straight t
|
||||
:mode "\\.ts\\'"
|
||||
:config
|
||||
(add-hook 'typescript-mode-hook #'smartparens-mode)
|
||||
(add-hook 'typescript-mode-hook #'rainbow-delimiters-mode)
|
||||
(my/set-smartparens-indent 'typescript-mode))
|
||||
|
||||
(defun set-flycheck-eslint()
|
||||
"Override flycheck checker with eslint."
|
||||
|
|
@ -1092,16 +1198,28 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
(add-hook 'js-mode-hook #'smartparens-mode)
|
||||
(my/set-smartparens-indent 'js-mode)
|
||||
|
||||
(use-package vue-mode
|
||||
:straight t)
|
||||
|
||||
;; (add-hook 'vue-mode-hook
|
||||
;; #'set-flycheck-eslint)
|
||||
(use-package jest-test-mode
|
||||
:straight t
|
||||
:hook ((typescript-mode . jest-test-mode)
|
||||
(js-mode . jest-test-mode))
|
||||
:config
|
||||
(my-leader-def
|
||||
:keymaps 'jest-test-mode-map
|
||||
:infix "t"
|
||||
"t" 'jest-test-run-at-point
|
||||
"r" 'jest-test-run
|
||||
"a" 'jest-test-run-all-tests))
|
||||
|
||||
(add-hook 'vue-mode-hook #'hs-minor-mode)
|
||||
(add-hook 'vue-mode-hook #'smartparens-mode)
|
||||
(my/set-smartparens-indent 'vue-mode)
|
||||
|
||||
(use-package vue-mode
|
||||
:straight t
|
||||
:mode "\\.vue\\'"
|
||||
:config
|
||||
(add-hook 'vue-mode-hook #'hs-minor-mode)
|
||||
(add-hook 'vue-mode-hook #'smartparens-mode)
|
||||
(my/set-smartparens-indent 'vue-mode)
|
||||
(add-hook 'vue-mode-hook (lambda () (set-face-background 'mmm-default-submode-face nil))))
|
||||
|
||||
|
||||
(with-eval-after-load 'editorconfig
|
||||
(add-to-list 'editorconfig-indentation-alist
|
||||
'(vue-mode css-indent-offset
|
||||
|
|
@ -1111,27 +1229,24 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
typescript-indent-level
|
||||
)))
|
||||
|
||||
(add-hook 'vue-mode-hook (lambda () (set-face-background 'mmm-default-submode-face nil)))
|
||||
(add-hook 'vue-html-mode 'emmet-mode)
|
||||
|
||||
(use-package svelte-mode
|
||||
:straight t)
|
||||
|
||||
(add-hook 'svelte-mode-hook
|
||||
'set-flycheck-eslint)
|
||||
|
||||
(add-hook 'svelte-mode-hook #'smartparens-mode)
|
||||
(my/set-smartparens-indent 'svelte-mode)
|
||||
:straight t
|
||||
:mode "\\.svelte\\'"
|
||||
:config
|
||||
(add-hook 'svelte-mode-hook 'set-flycheck-eslint)
|
||||
(add-hook 'svelte-mode-hook #'smartparens-mode)
|
||||
(my/set-smartparens-indent 'svelte-mode))
|
||||
|
||||
(add-hook 'scss-mode-hook #'smartparens-mode)
|
||||
(my/set-smartparens-indent 'scss-mode)
|
||||
|
||||
(use-package php-mode
|
||||
:straight t)
|
||||
:straight t
|
||||
:mode "\\.php\\'")
|
||||
|
||||
(use-package tex
|
||||
:straight auctex
|
||||
:defer t
|
||||
;; :mode "\\.tex\\'"
|
||||
:config
|
||||
(setq-default TeX-auto-save t)
|
||||
(setq-default TeX-parse-self t)
|
||||
|
|
@ -1146,8 +1261,8 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
(setq-default font-latex-fontify-sectioning 1.3)
|
||||
|
||||
(setq-default preview-scale-function 1.4)
|
||||
(assoc-delete-all "--" tex--prettify-symbols-alist)
|
||||
(assoc-delete-all "---" tex--prettify-symbols-alist)
|
||||
;; (assoc-delete-all "--" tex--prettify-symbols-alist)
|
||||
;; (assoc-delete-all "---" tex--prettify-symbols-alist)
|
||||
|
||||
(add-hook 'LaTeX-mode-hook
|
||||
(lambda ()
|
||||
|
|
@ -1155,25 +1270,27 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
(outline-minor-mode)))
|
||||
|
||||
(add-to-list 'TeX-view-program-selection
|
||||
'(output-pdf "Zathura")))
|
||||
'(output-pdf "Zathura"))
|
||||
|
||||
(add-hook 'LaTeX-mode-hook
|
||||
#'(lambda ()
|
||||
(unless (string-match "\.hogan\.tex$" (buffer-name))
|
||||
(lsp))
|
||||
(setq-local lsp-diagnostic-package :none)
|
||||
(setq-local flycheck-checker 'tex-chktex)))
|
||||
|
||||
(add-hook 'LaTeX-mode-hook #'rainbow-delimiters-mode)
|
||||
(add-hook 'LaTeX-mode-hook #'smartparens-mode)
|
||||
(add-hook 'LaTeX-mode-hook #'prettify-symbols-mode)
|
||||
|
||||
(my/set-smartparens-indent 'LaTeX-mode)
|
||||
|
||||
(general-nmap
|
||||
:keymaps '(LaTeX-mode-map latex-mode-map)
|
||||
"RET" 'TeX-command-run-all
|
||||
"C-c t" 'orgtbl-mode)
|
||||
(add-hook 'LaTeX-mode-hook
|
||||
#'(lambda ()
|
||||
(unless (string-match "\.hogan\.tex$" (buffer-name))
|
||||
(lsp))
|
||||
(setq-local lsp-diagnostic-package :none)
|
||||
(setq-local flycheck-checker 'tex-chktex)))
|
||||
|
||||
(add-hook 'LaTeX-mode-hook #'rainbow-delimiters-mode)
|
||||
(add-hook 'LaTeX-mode-hook #'smartparens-mode)
|
||||
(add-hook 'LaTeX-mode-hook #'prettify-symbols-mode)
|
||||
|
||||
(my/set-smartparens-indent 'LaTeX-mode)
|
||||
(require 'smartparens-latex)
|
||||
|
||||
(general-nmap
|
||||
:keymaps '(LaTeX-mode-map latex-mode-map)
|
||||
"RET" 'TeX-command-run-all
|
||||
"C-c t" 'orgtbl-mode)
|
||||
)
|
||||
|
||||
(defun my/import-sty ()
|
||||
(interactive)
|
||||
|
|
@ -1205,6 +1322,7 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
|
||||
(use-package markdown-mode
|
||||
:straight t
|
||||
:mode "\\.md\\'"
|
||||
:config
|
||||
(setq markdown-command
|
||||
(concat
|
||||
|
|
@ -1217,7 +1335,7 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
(setq markdown-live-preview-delete-export 'delete-on-export)
|
||||
(setq markdown-asymmetric-header t)
|
||||
(setq markdown-open-command "/home/pavel/bin/scripts/chromium-sep")
|
||||
)
|
||||
(add-hook 'markdown-mode-hook #'smartparens-mode))
|
||||
|
||||
;; (use-package livedown
|
||||
;; :straight (:host github :repo "shime/emacs-livedown")
|
||||
|
|
@ -1229,27 +1347,24 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
:keymaps 'markdown-mode-map
|
||||
"M-<left>" 'markdown-promote
|
||||
"M-<right>" 'markdown-demote)
|
||||
|
||||
(add-hook 'markdown-mode-hook #'smartparens-mode)
|
||||
;; (my/set-smartparens-indent 'js-mode)
|
||||
|
||||
(use-package plantuml-mode
|
||||
:straight t
|
||||
:mode "(\\.\\(plantuml?\\|uml\\|puml\\)\\'"
|
||||
:config
|
||||
(setq plantuml-executable-path "/usr/bin/plantuml")
|
||||
(setq plantuml-default-exec-mode 'executable)
|
||||
(add-to-list 'auto-mode-alist '("\\.plantuml\\'" . plantuml-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.uml\\'" . plantuml-mode))
|
||||
)
|
||||
(add-hook 'plantuml-mode-hook #'smartparens-mode))
|
||||
|
||||
(general-nmap
|
||||
:keymaps 'plantuml-mode-map
|
||||
"RET" 'plantuml-preview)
|
||||
|
||||
(add-hook 'plantuml-mode-hook #'smartparens-mode)
|
||||
|
||||
(use-package langtool
|
||||
:straight t
|
||||
:commands (langtool-check)
|
||||
:config
|
||||
(setq langtool-language-tool-server-jar "/home/pavel/Programs/LanguageTool-5.1/languagetool-server.jar")
|
||||
(setq langtool-mother-tongue "ru"))
|
||||
|
|
@ -1265,59 +1380,74 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
|
||||
(add-hook 'python-mode-hook #'smartparens-mode)
|
||||
|
||||
(use-package ejc-sql
|
||||
(use-package lsp-java
|
||||
:straight t
|
||||
:after (lsp)
|
||||
:config
|
||||
(setq clomacs-httpd-default-port 8080)
|
||||
(require 'ejc-company)
|
||||
(push 'ejc-company-backend company-backends)
|
||||
(setq ejc-complete-on-dot t))
|
||||
(setq lsp-java-jdt-download-url "https://download.eclipse.org/jdtls/milestones/0.57.0/jdt-language-server-0.57.0-202006172108.tar.gz")
|
||||
(add-hook 'java-mode-hook #'smartparens-mode)
|
||||
(my/set-smartparens-indent 'java-mode))
|
||||
|
||||
(use-package clojure-mode
|
||||
:straight t)
|
||||
:straight t
|
||||
:mode "\\.clj[sc]?\\'"
|
||||
:config
|
||||
(add-hook 'clojure-mode-hook #'smartparens-strict-mode)
|
||||
(add-hook 'clojure-mode-hook #'aggressive-indent-mode))
|
||||
|
||||
(add-hook 'clojure-mode-hook #'smartparens-strict-mode)
|
||||
(add-hook 'clojure-mode-hook #'aggressive-indent-mode)
|
||||
|
||||
(use-package cider
|
||||
:mode "\\.clj[sc]?\\'"
|
||||
:straight t)
|
||||
|
||||
(add-hook 'lisp-interaction-mode-hook #'smartparens-mode)
|
||||
|
||||
(use-package go-mode
|
||||
:straight t)
|
||||
:straight t
|
||||
:mode "\\.go\\'"
|
||||
:config
|
||||
(my/set-smartparens-indent 'go-mode)
|
||||
(add-hook 'go-mode-hook 'smartparens-mode))
|
||||
|
||||
(use-package fish-mode
|
||||
:straight t)
|
||||
|
||||
(add-hook 'fish-mode-hook #'smartparens-mode)
|
||||
:straight t
|
||||
:mode "\\.fish\\'"
|
||||
:config
|
||||
(add-hook 'fish-mode-hook #'smartparens-mode))
|
||||
|
||||
(add-hook 'sh-mode-hook #'smartparens-mode)
|
||||
|
||||
(use-package clips-mode
|
||||
:straight t)
|
||||
:straight t
|
||||
:mode "\\.cl\\'")
|
||||
|
||||
(use-package haskell-mode
|
||||
:straight t)
|
||||
:straight t
|
||||
:mode "\\.hs\\'")
|
||||
|
||||
(use-package lsp-haskell
|
||||
:straight t)
|
||||
:straight t
|
||||
:after (lsp haskell-mode))
|
||||
|
||||
(use-package json-mode
|
||||
:straight t)
|
||||
|
||||
(add-hook 'json-mode #'smartparens-mode)
|
||||
(my/set-smartparens-indent 'json-mode)
|
||||
:straight t
|
||||
:mode "\\.json\\'"
|
||||
:config
|
||||
(add-hook 'json-mode #'smartparens-mode)
|
||||
(my/set-smartparens-indent 'json-mode))
|
||||
|
||||
(use-package yaml-mode
|
||||
:straight t
|
||||
:mode "\\.yml\\'"
|
||||
:config
|
||||
(add-to-list 'auto-mode-alist '("\\.yml\\'" . yaml-mode)))
|
||||
|
||||
(use-package dockerfile-mode
|
||||
:straight t)
|
||||
(use-package csv-mode
|
||||
:straight t
|
||||
:mode "\\.csv\\'")
|
||||
|
||||
(general-define-key
|
||||
:keymaps 'image-mode-map
|
||||
"q" 'kill-this-buffer)
|
||||
(use-package dockerfile-mode
|
||||
:mode "Dockerfile\\'"
|
||||
:straight t)
|
||||
|
||||
(setq remote-file-name-inhibit-cache nil)
|
||||
(setq tramp-default-method "ssh")
|
||||
|
|
@ -1335,7 +1465,5 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
"-" 'text-scale-decrease)
|
||||
|
||||
(use-package snow
|
||||
:straight (:repo "alphapapa/snow.el" :host github))
|
||||
|
||||
(use-package explain-pause-mode
|
||||
:straight (explain-pause-mode :type git :host github :repo "lastquestion/explain-pause-mode"))
|
||||
:straight (:repo "alphapapa/snow.el" :host github)
|
||||
:commands (snow))
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
\begin{figure}[h]
|
||||
\centering
|
||||
\includegraphics[${1:width=\textwidth}]{${2:`(shell-command-to-string "find -name \"*.png\" -type f -print0 | xargs -0 stat --format '%Y :%y %n' | sort -nr | head -n 1 | awk '{ printf $5 }'
|
||||
")`}}
|
||||
")`}} % chktex 8
|
||||
\caption{$3}%
|
||||
\label{fig:${4:label}}
|
||||
\end{figure}
|
||||
|
|
|
|||
13
.emacs.d/snippets/latex-mode/lfig-with-text
Normal file
13
.emacs.d/snippets/latex-mode/lfig-with-text
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# key: llfig
|
||||
# name: lfig-with-text
|
||||
# --
|
||||
рис.~\ref{fig:$1}.
|
||||
|
||||
\begin{figure}[h]
|
||||
\centering
|
||||
\includegraphics[${2:width=\textwidth}]{${3:`(shell-command-to-string "find -name \"*.png\" -type f -print0 | xargs -0 stat --format '%Y :%y %n' | sort -nr | head -n 1 | awk '{ printf $5 }'
|
||||
")`}} % chktex 8
|
||||
\caption{$4}%
|
||||
\label{fig:$1}
|
||||
\end{figure}
|
||||
$0
|
||||
21
.emacs.d/snippets/latex-mode/my-subfig
Normal file
21
.emacs.d/snippets/latex-mode/my-subfig
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: my-subfig
|
||||
# key: subfigg
|
||||
# --
|
||||
|
||||
\begin{figure}[h]
|
||||
\centering
|
||||
\begin{subfigure}[b]{${1:0.45}\textwidth}
|
||||
\includegraphics[width=\textwidth]{$2}
|
||||
\caption{$3}
|
||||
\end{subfigure}%
|
||||
\hspace{1cm}
|
||||
\begin{subfigure}[b]{${4:0.45}\textwidth}
|
||||
\includegraphics[width=\textwidth]{$5}
|
||||
\caption{$6}
|
||||
\end{subfigure}%
|
||||
\caption{$7}%
|
||||
\label{fig:$8}
|
||||
\end{figure}
|
||||
$0
|
||||
|
||||
124
.emacs.d/straight/versions/default.el
Normal file
124
.emacs.d/straight/versions/default.el
Normal file
|
|
@ -0,0 +1,124 @@
|
|||
(("Emacs-langtool" . "8276eccc5587bc12fd205ee58a7a982f0a136e41")
|
||||
("a.el" . "3d341eb7813ee02b00ab28e11c915295bfd4b5a7")
|
||||
("ace-window" . "c7cb315c14e36fded5ac4096e158497ae974bec9")
|
||||
("activity-watch-mode" . "9d591c5ec9a2b2c7b55a754dd37c7434b2ef9fdc")
|
||||
("aggressive-indent-mode" . "b0ec0047aaae071ad1647159613166a253410a63")
|
||||
("all-the-icons-dired" . "fc2dfa1e9eb8bf1c402a675e7089638d702a27a5")
|
||||
("all-the-icons.el" . "19c8708b6ed9463e6c9a3bcce92e7e92d6260008")
|
||||
("annalist.el" . "134fa3f0fb91a636a1c005c483516d4b64905a6d")
|
||||
("auctex" . "384c4b989192087144512a528bcc1949c2ab3e5b")
|
||||
("auto-dim-other-buffers.el" . "62c936d502f35d168b9e59a66c994d74a62ad2cf")
|
||||
("avy" . "e92cb37457b43336b765630dbfbea8ba4be601fa")
|
||||
("aweshell" . "31004ddfdf5b6f9dae0708e799a54ec592298840")
|
||||
("bui.el" . "f3a137628e112a91910fd33c0cff0948fa58d470")
|
||||
("cfrs" . "7c42f2c82c7ae689f3ef291b066688c58ab96298")
|
||||
("cider" . "ae03e85a0adcd301d220e7a500aec4d5a26fbfc7")
|
||||
("clips-mode" . "dd38e2822640a38f7d8bfec4f69d8dd24be27074")
|
||||
("clojure-mode" . "cccddea53b816c5d06c3f4fe0ba798b9f7047a63")
|
||||
("company-box" . "ec8f44674dc10dd4d50785a1f97820b29d392ea2")
|
||||
("company-mode" . "88001d794d963049339883216b6606de0a1209ea")
|
||||
("conda.el" . "dce431b25f5a13af58cc7cacfa7968b5a888609c")
|
||||
("counsel-projectile" . "06b03c1080d3ccc3fa9b9c41b1ccbcf13f058e4b")
|
||||
("csv-mode" . "8da54e8b4ef9e5fe8a0afa147c625ced603dc0aa")
|
||||
("dap-mode" . "aa15b9c49b7e09bb23f9a4ff7855122f0eb19976")
|
||||
("dash.el" . "0e975782086020aa12863fdb658d6a3cc748a10c")
|
||||
("dired-hacks" . "d1a2bda6aa8f890cb367297ed93aee6d3b5ba388")
|
||||
("dired-plus" . "40881cbe37faa27c14ef47af0a0449bcbb2c38af")
|
||||
("dired-single" . "98c2102429fcac6fbfdba9198c126eb1b3dcc4e5")
|
||||
("dockerfile-mode" . "ed1d04c89cd8b53963f2dcae7cb3a46967e0abbf")
|
||||
("doom-modeline" . "1d8d8f885d1e2cdde31c256e11fce95a5b1fcce3")
|
||||
("edit-indirect" . "bdc8f542fe8430ba55f9a24a7910639d4c434422")
|
||||
("editorconfig-emacs" . "048c553999c90db0b6066b3ec647a79f4af9985d")
|
||||
("el-get" . "84dd1837f9ac80a329ab0c2de6859777f445f8ff")
|
||||
("elisp-refs" . "b3634a4567c655a1cda51b217629849cba0ac6a7")
|
||||
("emacs-async" . "d7e7f79ee42311a0187aa2ab4f4e2f8843fa28da")
|
||||
("emacs-doom-themes" . "35b86f228f76ef4f782562c9d3188769e433b17b")
|
||||
("emacs-emojify" . "cfa00865388809363df3f884b4dd554a5d44f835")
|
||||
("emacs-fish" . "a7c953b1491ac3a3e00a7b560f2c9f46b3cb5c04")
|
||||
("emacs-jupyter" . "6ce8d01e3a550a3268b415bf9d9b635d4dba5940")
|
||||
("emacs-libvterm" . "e19da61668783239e47b1a7390fca10f38ceffa9")
|
||||
("emacs-request" . "accd430ee706f5b10fb20003b06bd8209bcdaa82")
|
||||
("emacs-web-server" . "22ce66ea43e0eadb9ec1d691a35d9695fc29cee6")
|
||||
("emacs-websocket" . "34e11124fdd9d73e431499ba8a6b6a8023519664")
|
||||
("emacs-which-key" . "c0608e812a8d1bc7aefeacdfaeb56a7272eabf44")
|
||||
("emacs-zmq" . "eb4e01715cbf2f356a8ae5e678ffec3380a907dc")
|
||||
("emacsmirror-mirror" . "cada5476fbb770834622564856d5789c63e41433")
|
||||
("epl" . "78ab7a85c08222cd15582a298a364774e3282ce6")
|
||||
("evil" . "881a9ef5b92678c420617bfd60434c99ffb924b6")
|
||||
("evil-collection" . "334670e29d964c5f591f75ccbf52b7b5faf4daba")
|
||||
("evil-commentary" . "2dab6ac34d1617971768ad219d73af48f7473fec")
|
||||
("evil-magit" . "98c076fbeb6d2d7d71e02dc204ba3ad5d577abda")
|
||||
("evil-numbers" . "6ea1c8c3a9b37bed63d48f1128e9a4910e68187e")
|
||||
("evil-org-mode" . "80ef38fb378541937f6ddfe836809e76eda1e355")
|
||||
("evil-quickscope" . "37a20e4c56c6058abf186ad4013c155e695e876f")
|
||||
("evil-surround" . "346d4d85fcf1f9517e9c4991c1efe68b4130f93a")
|
||||
("f.el" . "c4dbf8c8e83df834f5d6f72cd5649b9d8a8812ec")
|
||||
("flycheck" . "01396a5eff9fa494285e0d3139838231c05e3948")
|
||||
("frame-local" . "7ee1106c3bcd4022f48421f8cb1ef4f995da816e")
|
||||
("general.el" . "a0b17d207badf462311b2eef7c065b884462cb7c")
|
||||
("git-gutter" . "cca61a1c6b0c0fd6ecb1b0366711c618581eabb6")
|
||||
("gnu-elpa-mirror" . "be9f76827527f058e83818ab53c29393ccd99315")
|
||||
("go-mode.el" . "49a538028e63dbe20f428c52d91f09b70b564626")
|
||||
("goto-chg" . "2af612153bc9f5bed135d25abe62f46ddaa9027f")
|
||||
("haskell-mode" . "3a019e65b504861d7ea23afbfecd14e5ef63e846")
|
||||
("helpful" . "0b6720145e1d1e037ec8658b83fddfad2c0ce923")
|
||||
("highlight-indent-guides" . "cf352c85cd15dd18aa096ba9d9ab9b7ab493e8f6")
|
||||
("ht.el" . "c4c1be487d6ecb353d07881526db05d7fc90ea87")
|
||||
("hydra" . "2d553787aca1aceb3e6927e426200e9bb9f056f1")
|
||||
("ivy-rich" . "7b9b7b20c3ead81da90232cd6707dfad3c1f1eb3")
|
||||
("jest-test-mode" . "fb2bacab9475410c79e6e4ca344f093f7698466d")
|
||||
("json-mode" . "0e819e519ae17a2686e0881c4ca51fa873fa9b83")
|
||||
("json-reformat" . "8eb6668ed447988aea06467ba8f42e1f2178246f")
|
||||
("json-snatcher" . "b28d1c0670636da6db508d03872d96ffddbc10f2")
|
||||
("let-alist" . "6708ec0b2e6dff80ff5b64698aa009d9070a2ed2")
|
||||
("ligature.el" . "63530a4eaa41830370b251a64a78a0733c29f779")
|
||||
("lsp-haskell" . "7efbef3d206989faa8b691a4230a3ed872542187")
|
||||
("lsp-java" . "93db10d0b521435824732e1e46ac1fcf05c9893f")
|
||||
("lsp-mode" . "447088158d1d090af460cc55577307553c91c0f7")
|
||||
("lsp-treemacs" . "3bae4a91e05d55d5ca92da272ffcd497f370e9df")
|
||||
("lsp-ui" . "0ac3e12138a7eeaf764845d1e7e61b02769003ec")
|
||||
("magit" . "db1c7ecc849b83429346c2328c45648cb89722f3")
|
||||
("markdown-mode" . "051734091aba17a54af96b81beebdbfc84c26459")
|
||||
("melpa" . "ececaeddf8d7d17ddd9bb20401ff96edb707c06f")
|
||||
("mmm-mode" . "0d00cdf4d02cc166304f6967a20fa22e2eaf208b")
|
||||
("no-littering" . "57357e15643158b4e0d9b3b4f70a82f5fc73178a")
|
||||
("ob-async" . "de1cd6c93242a4cb8773bbe115b7be3d4dd6b97e")
|
||||
("org" . "f6e41c1d14e7ae68be8f641e54719093ebf6ff18")
|
||||
("org-latex-impatient" . "d8be05fd6857c72a1766e3fa9dafa1602ccf88e3")
|
||||
("org-superstar-mode" . "9d64c42e5029910153ec74cb9b5747b074281140")
|
||||
("ox-hugo" . "6805ccc23365620004034c18fbed22a8a07bd4dc")
|
||||
("parseclj" . "eff941126859bc9e949eae5cd6c2592e731629f2")
|
||||
("parseedn" . "90cfe3df51b96f85e346f336c0a0ee6bf7fee508")
|
||||
("pfuture" . "d7926de3ba0105a36cfd00811fd6278aea903eef")
|
||||
("php-mode" . "8cdc727e6d4eef81655b90574784e9540f407cda")
|
||||
("pkg-info" . "76ba7415480687d05a4353b27fea2ae02b8d9d61")
|
||||
("plantuml-mode" . "ea45a13707abd2a70df183f1aec6447197fc9ccc")
|
||||
("posframe" . "3454a4cb9d218c38f9c5b88798dfb2f7f85ad936")
|
||||
("projectile" . "f3f8a6505d50ca0f03f7deef99a1c8aa3bcd9e58")
|
||||
("pythonic" . "e0e5cc882f2f1316268ec461a34d4be8abc313b7")
|
||||
("queue" . "52206c0f78afc0dfb9a287cb928c1e725103336d")
|
||||
("rainbow-delimiters" . "f43d48a24602be3ec899345a3326ed0247b960c6")
|
||||
("s.el" . "43ba8b563bee3426cead0e6d4ddc09398e1a349d")
|
||||
("sesman" . "edee869c209c016e5f0c5cbb8abb9f3ccd2d1e05")
|
||||
("shrink-path.el" . "c14882c8599aec79a6e8ef2d06454254bb3e1e41")
|
||||
("smartparens" . "fb1ce4b4013fe6f86dde9dd5bd5d4c032ab0d45b")
|
||||
("snow.el" . "7ca25adc94148f182ac58c9f5d35f576a8a3131c")
|
||||
("spinner" . "61f59fab44d22cd5add61a1baf3f0b88a5d829d7")
|
||||
("ssass-mode" . "96f557887ad97a0066a60c54f92b7234b8407016")
|
||||
("straight.el" . "e1390a933b6f5a15079d6dec91eac97a17aad10c")
|
||||
("svelte-mode" . "25d0018036f44ff9bd685a1c9a76d8ba57c1024d")
|
||||
("swiper" . "e005666df39ca767e6d5ab71b1a55d8c08395259")
|
||||
("transient" . "9ca983bab26d1a8e189a8c44471d9575284b268d")
|
||||
("treemacs" . "0952728fc40022ca7db8e7a58c95e41e8d5448f1")
|
||||
("typescript.el" . "1043025d42602d560949955410d3afa2562130ee")
|
||||
("undo-tree" . "e326c6135e62f5fe8536528d3acd5e798f847407")
|
||||
("use-package" . "a7422fb8ab1baee19adb2717b5b47b9c3812a84c")
|
||||
("visual-fill-column" . "5b08b9ae9da5b95e42e94e4c9ec01d63e8848ea2")
|
||||
("vue-html-mode" . "1514939804bad558584feeb6298b38d22eadf64e")
|
||||
("vue-mode" . "031edd1f97db6e7d8d6c295c0e6d58dd128b9e71")
|
||||
("wakatime-mode" . "5e6deddda7a70f4b79832e9e8b6636418812e162")
|
||||
("with-editor" . "2848a90addae086b657605b84a7fbecf2c4c1c65")
|
||||
("yaml-mode" . "fc5e1c58f94472944c4aa838f00f6adcac6fa992")
|
||||
("yasnippet" . "5cbdbf0d2015540c59ed8ee0fcf4788effdf75b6")
|
||||
("yasnippet-snippets" . "899c027f442587e0f8ef90761f58b27907ca64b4"))
|
||||
:beta
|
||||
12
.mailcap
12
.mailcap
|
|
@ -1,13 +1,9 @@
|
|||
###
|
||||
### Begin Red Hat Mailcap
|
||||
###
|
||||
audio/*; mpc add %s
|
||||
|
||||
audio/*; /usr/bin/xdg-open %s
|
||||
|
||||
image/*; /usr/bin/xdg-open %s
|
||||
image/*; feh %s
|
||||
|
||||
application/msword; /usr/bin/xdg-open %s
|
||||
application/pdf; /usr/bin/xdg-open %s
|
||||
application/postscript ; /usr/bin/xdg-open %s
|
||||
application/pdf; zathura %s
|
||||
application/postscript ; zathura %s
|
||||
|
||||
text/html; /usr/bin/xdg-open %s
|
||||
|
|
|
|||
|
|
@ -49,8 +49,10 @@ primary_email=thexcloud@gmail.com
|
|||
# in the mail store.
|
||||
#
|
||||
|
||||
other_email=progin6304@gmail.com;
|
||||
|
||||
[new]
|
||||
tags=new
|
||||
tags=new;
|
||||
ignore=.osync_workdir
|
||||
|
||||
# Search configuration
|
||||
|
|
|
|||
4
Mail/.notmuch/hooks/post-new
Executable file
4
Mail/.notmuch/hooks/post-new
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
notmuch tag +main "path:thexcloud/** AND tag:new"
|
||||
notmuch tag +progin "path:progin6304/** AND tag:new"
|
||||
notmuch tag -new "tag:new"
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/bash
|
||||
GMI="/home/pavel/Programs/miniconda3/envs/mail/bin/gmi"
|
||||
(cd /home/pavel/Mail/thexcloud/ && $GMI sync)
|
||||
parallel -j0 "(cd /home/pavel/Mail/{}/ && $GMI sync)" ::: thexcloud progin6304
|
||||
|
|
|
|||
1
Mail/progin6304/.gmailieer.json
Normal file
1
Mail/progin6304/.gmailieer.json
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"replace_slash_with_dot": false, "account": "progin6304@gmail.com", "timeout": 600, "drop_non_existing_label": false, "ignore_empty_history": false, "ignore_tags": ["main", "progin", "new"], "ignore_remote_labels": ["CATEGORY_PROMOTIONS", "CATEGORY_UPDATES", "CATEGORY_PERSONAL", "CATEGORY_FORUMS", "CATEGORY_SOCIAL"], "remove_local_messages": true, "file_extension": ""}
|
||||
|
|
@ -1 +1 @@
|
|||
{"replace_slash_with_dot": true, "account": "thexcloud@gmail.com", "timeout": 600, "drop_non_existing_label": false, "ignore_empty_history": false, "ignore_tags": ["new"], "ignore_remote_labels": ["CATEGORY_PROMOTIONS", "CATEGORY_SOCIAL", "CATEGORY_FORUMS", "CATEGORY_UPDATES", "CATEGORY_PERSONAL"], "remove_local_messages": true, "file_extension": ""}
|
||||
{"replace_slash_with_dot": true, "account": "thexcloud@gmail.com", "timeout": 600, "drop_non_existing_label": false, "ignore_empty_history": false, "ignore_tags": ["progin", "new", "main"], "ignore_remote_labels": ["CATEGORY_UPDATES", "CATEGORY_PROMOTIONS", "CATEGORY_PERSONAL", "CATEGORY_SOCIAL", "CATEGORY_FORUMS"], "remove_local_messages": true, "file_extension": ""}
|
||||
|
|
@ -28,7 +28,7 @@ declare -A BLOCKS=(
|
|||
["eDP1"]="pulseaudio mpd SEP cpu ram-memory swap-memory SEP network ipstack-vpn SEP xkeyboard SEP battery SEP sun aw-afk date TSEP"
|
||||
)
|
||||
|
||||
export LOC="TMN"
|
||||
export LOC="SPB"
|
||||
|
||||
pkill polybar
|
||||
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
||||
|
|
|
|||
|
|
@ -13,9 +13,15 @@ NEW_UNREAD=$(notmuch count "$QUERY")
|
|||
ALL_UNREAD=$(notmuch count "$ALL_QUERY")
|
||||
|
||||
if [ $NEW_UNREAD -gt 0 ]; then
|
||||
notify-send "New Mail" "$NEW_UNREAD new messages\n$ALL_UNREAD total"
|
||||
# elif [ $ALL_UNREAD -gt 0 ]; then
|
||||
# notify-send "New Mail" "$ALL_UNREAD unread messages"
|
||||
MAIN_UNREAD=$(notmuch count "tag:unread AND tag:main")
|
||||
PROGIN_UNREAD=$(notmuch count "tag:unread AND tag:progin")
|
||||
read -r -d '' NOTIFICATION <<EOM
|
||||
$NEW_UNREAD new messages
|
||||
$MAIN_UNREAD thexcloud@gmail.com
|
||||
$PROGIN_UNREAD progin6304@gmail.com
|
||||
$ALL_UNREAD total
|
||||
EOM
|
||||
notify-send "New Mail" "$NOTIFICATION"
|
||||
fi
|
||||
|
||||
echo "$(date +%s)" > $CHECK_FILE
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue