mostly sublime, some zshrc

This commit is contained in:
Adrien Luxey 2019-09-27 10:29:26 +02:00
parent 32ba72e8c6
commit f711890dc9
14 changed files with 304 additions and 120 deletions

2
sublime/.jsbeautifyrc Normal file
View file

@ -0,0 +1,2 @@
{
}

View file

@ -0,0 +1,7 @@
// These settings override both User and Default settings for the C++ syntax
{
// The number of spaces a tab is considered equal to
"tab_size": 2,
// Set to true to insert spaces when tab is pressed
"translate_tabs_to_spaces": true,
}

View file

@ -1,121 +1,196 @@
[
// Open folder
{ "keys": ["ctrl+shift+o"], "command": "prompt_open_folder" },
// Switch case
{ "keys": ["ctrl+u"], "command": "swap_case"},
// Open folder
{
"keys": ["ctrl+shift+o"],
"command": "prompt_open_folder"
},
// Change Ctrl+Shift behaviour (Firefox-like)
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" },
{ "keys": ["ctrl+pagedown"], "command": "next_view_in_stack" },
{ "keys": ["ctrl+pageup"], "command": "prev_view_in_stack" },
// Switch case
{
"keys": ["ctrl+u"],
"command": "swap_case"
},
// Lord, do I hate Ctrl+q ...
{ "keys": ["ctrl+q"], "command": "unbound"},
// Change Ctrl+Shift behaviour (Firefox-like)
{
"keys": ["ctrl+tab"],
"command": "next_view"
},
{
"keys": ["ctrl+shift+tab"],
"command": "prev_view"
},
{
"keys": ["ctrl+pagedown"],
"command": "next_view_in_stack"
},
{
"keys": ["ctrl+pageup"],
"command": "prev_view_in_stack"
},
// Lord, do I hate Ctrl+q ... Deactivated because of Layout
//{ "keys": ["ctrl+q"], "command": "unbound"},
// Allow Alt+C to comment:
{ "keys": ["alt+c"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["alt+c"], "command": "toggle_comment", "args": { "block": true } },
{ "keys": ["ctrl+/"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+shift+/"], "command": "toggle_comment", "args": { "block": true } },
// View settings
{
"keys": ["ctrl+alt+&"],
"command": "set_layout",
"args":
{
"cols": [0.0, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1]]
}
},
{
"keys": ["ctrl+alt+é"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.5, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
}
},
{
"keys": ["ctrl+alt+\""],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.5, 1.0],
"rows": [0.0, 0.5, 1.0],
"cells":
[
[0, 0, 1, 1], [1, 0, 2, 1],
[0, 1, 2, 2]
]
// "cols": [0.0, 0.33, 0.66, 1.0],
// "rows": [0.0, 1.0],
// "cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1]]
}
},
{
"keys": ["alt+shift+4"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.25, 0.5, 0.75, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1], [3, 0, 4, 1]]
}
},
{
"keys": ["ctrl+alt+("],
"command": "set_layout",
"args":
{
"cols": [0.0, 1.0],
"rows": [0.0, 0.5, 1.0],
"cells": [[0, 0, 1, 1], [0, 1, 1, 2]]
}
},
{
"keys": ["alt+shift+9"],
"command": "set_layout",
"args":
{
"cols": [0.0, 1.0],
"rows": [0.0, 0.33, 0.66, 1.0],
"cells": [[0, 0, 1, 1], [0, 1, 1, 2], [0, 2, 1, 3]]
}
},
{
"keys": ["ctrl+alt+'"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.5, 1.0],
"rows": [0.0, 0.5, 1.0],
"cells":
[
[0, 0, 1, 1], [1, 0, 2, 1],
[0, 1, 1, 2], [1, 1, 2, 2]
]
}
},
{
"keys": ["ctrl+alt+o"],
"command": "project_manager", "args": {"action": "new"}
},
{ "keys": ["ctrl+alt+s"], "command": "toggle_side_bar" },
// Allow Alt+C to comment:
{
"keys": ["alt+c"],
"command": "toggle_comment",
"args":
{
"block": false
}
},
{
"keys": ["alt+c"],
"command": "toggle_comment",
"args":
{
"block": true
}
},
{
"keys": ["ctrl+/"],
"command": "toggle_comment",
"args":
{
"block": false
}
},
{
"keys": ["ctrl+shift+/"],
"command": "toggle_comment",
"args":
{
"block": true
}
},
// LaTeX compilation set to Ctrl+Enter
// Doesn't work...
// {
// "keys": ["ctrl+enter"],
// "context": [
// {"key": "selector", "operator": "equal", "operand": "text.tex.latex"},
// {"key": "latextools.st_version", "operator": "equal", "operand": "<3080"}],
// "command": "latextools_build_selector"
// },
]
// View settings
{
"keys": ["ctrl+alt+&"],
"command": "set_layout",
"args":
{
"cols": [0.0, 1.0],
"rows": [0.0, 1.0],
"cells": [
[0, 0, 1, 1]
]
}
},
{
"keys": ["ctrl+alt+é"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.5, 1.0],
"rows": [0.0, 1.0],
"cells": [
[0, 0, 1, 1],
[1, 0, 2, 1]
]
}
},
{
"keys": ["ctrl+alt+\""],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.5, 1.0],
"rows": [0.0, 0.5, 1.0],
"cells": [
[0, 0, 1, 1],
[1, 0, 2, 1],
[0, 1, 2, 2]
]
// "cols": [0.0, 0.33, 0.66, 1.0],
// "rows": [0.0, 1.0],
// "cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1]]
}
},
{
"keys": ["alt+shift+4"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.25, 0.5, 0.75, 1.0],
"rows": [0.0, 1.0],
"cells": [
[0, 0, 1, 1],
[1, 0, 2, 1],
[2, 0, 3, 1],
[3, 0, 4, 1]
]
}
},
{
"keys": ["ctrl+alt+("],
"command": "set_layout",
"args":
{
"cols": [0.0, 1.0],
"rows": [0.0, 0.5, 1.0],
"cells": [
[0, 0, 1, 1],
[0, 1, 1, 2]
]
}
},
{
"keys": ["alt+shift+9"],
"command": "set_layout",
"args":
{
"cols": [0.0, 1.0],
"rows": [0.0, 0.33, 0.66, 1.0],
"cells": [
[0, 0, 1, 1],
[0, 1, 1, 2],
[0, 2, 1, 3]
]
}
},
{
"keys": ["ctrl+alt+'"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.5, 1.0],
"rows": [0.0, 0.5, 1.0],
"cells": [
[0, 0, 1, 1],
[1, 0, 2, 1],
[0, 1, 1, 2],
[1, 1, 2, 2]
]
}
},
{
"keys": ["ctrl+alt+o"],
"command": "project_manager",
"args":
{
"action": "new"
}
},
{
"keys": ["ctrl+alt+s"],
"command": "toggle_side_bar"
},
{
"keys": ["ctrl+alt+h"],
"command": "htmlprettify"
},
// LaTeX compilation set to Ctrl+Enter
// Doesn't work...
// {
// "keys": ["ctrl+enter"],
// "context": [
// {"key": "selector", "operator": "equal", "operand": "text.tex.latex"},
// {"key": "latextools.st_version", "operator": "equal", "operand": "<3080"}],
// "command": "latextools_build_selector"
// },
]

View file

@ -0,0 +1 @@
[]

View file

@ -0,0 +1,9 @@
{
/**
* This option dictates which style of docstrings to use, when parsing docstrings
*
* Available Options:
* [PEP0257, docblock, google, numpy, sphinx]
*/
"formatter": "numpy"
}

View file

@ -0,0 +1,7 @@
// These settings override both User and Default settings for the C++ syntax
{
// The number of spaces a tab is considered equal to
"tab_size": 2,
// Set to true to insert spaces when tab is pressed
"translate_tabs_to_spaces": true,
}

View file

@ -0,0 +1,3 @@
{
}

View file

@ -0,0 +1,12 @@
{
"foldable_environments": [
"table",
"figure",
"equation",
"section"
],
"zotero": false,
"zotero_user_id": "3421821",
"zotero_user_key": "5d3MQLpPp8ra2irK6tMyBvaJ",
"open_pdf_on_load": false
}

View file

@ -7,16 +7,22 @@
[
"All Autocomplete",
"AutoPEP8",
"ayu",
"Compare Side-By-Side",
"Diffy",
"DocBlockr_Python",
"Dockerfile Syntax Highlighting",
"ExportHtml",
"Git",
"GitGutter",
"GoSublime",
"Hermes",
"HTML-CSS-JS Prettify",
"Javascript Beautify",
"Language - French - Français",
"LaTeXing",
"LaTeXTools",
"Layout",
"Markdown Extended",
"MarkdownPreview",
"MultiEditUtils",
@ -28,6 +34,7 @@
"ProjectManager",
"SublimeCodeIntel",
"SublimeLinter",
"SublimeLinter-cppcheck",
"SublimeLinter-pyflakes",
"SublimeREPL",
"SwitchDictionary",

View file

@ -39,20 +39,57 @@
"anonymization",
"mixnets",
"Grafana",
"Prometheus"
"Prometheus",
"décarbonée",
"décarbonées",
"pourcent",
"pouième",
"misclassifications",
"Bayes",
"Hoeffding",
"misclassifies",
"app",
"leverages",
"webservices",
"problematics",
"leveraging",
"leechers",
"leecher",
"premiere",
"tuple",
"booleans",
"uploader",
"anymore",
"byzantine",
"anonymise",
"anonymised",
"cloudlets",
"versioned",
"blockchain",
"blockchains",
"Bitcoin",
"Markovian",
"wearables",
"churnful",
"boxplots",
"timeout",
"proxemics"
],
"close_windows_when_empty": false,
"color_scheme": "Packages/User/predawn (Flake8Lint).tmTheme",
"dictionary": "Packages/Language - English/en_US.dic",
"dictionary": "Packages/Language - English/en_GB.dic",
"find_selected_text": true,
"font_face": "Fira Code",
"font_size": 10,
"ignored_packages":
[
"LaTeXTools",
"SublimeREPL",
"Vintage"
],
"predawn_findreplace_small": true,
"predawn_quick_panel_small": true,
"predawn_sidebar_arrows": true,
"predawn_sidebar_arrows": false,
"predawn_sidebar_small": true,
"predawn_tabs_small": true,
"theme": "predawn-DEV.sublime-theme"

View file

@ -0,0 +1,15 @@
// SublimeLinter Settings - User
{
// Set to true to print extra information in the console.
"debug": true,
"linters": {
"cppcheck": {
// "@disable": false,
// "args": [],
"enable": "all",
// "excludes": [],
// "lint_mode": "save"
"std": ["c++11"]
}
}
}

13
zshrc
View file

@ -24,6 +24,7 @@ CASE_SENSITIVE="false"
# DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
# Uncomment the following line to disable colors in ls.
@ -103,10 +104,18 @@ fi
#export PATH=/home/adrien/bin:/opt/texbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/adrien/goroot/bin:/usr/local/go/bin:/home/adrien/goroot/bin:/home/adrien/.shadow/bin
#export PATH=$PATH:/home/adrien/.shadow/bin
export PATH=$PATH:/home/adrien/.local/bin
export PATH=$PATH:$HOME/.local/bin
if [ -d "$HOME/bin" ] ; then
PATH="$PATH:$HOME/bin"
fi
# Enable Autojump (j)
. /usr/share/autojump/autojump.sh
if [ -f "/usr/share/autojump/autojump.sh" ]; then
. /usr/share/autojump/autojump.sh
fi
# If there is a local zshrc, source it too
if [ -f "~/.zshrc.local" ]; then
. ~/.zshrc.local
fi