resync with my files.

This commit is contained in:
Julien Palard 2022-11-04 15:45:55 +01:00
parent 7fc4ed8422
commit ad40c3d127
Signed by: mdk
GPG Key ID: 0EFC1AC1006886F8
3 changed files with 39 additions and 7 deletions

19
.bashrc
View File

@ -12,6 +12,8 @@ shopt -s autocd
shopt -s globstar
shopt -s nocaseglob
PATH="$PATH:$HOME/.local/bin"
CDPATH="~/clones/"
if [ -n "$DISPLAY" ]
then
xset b off
@ -208,5 +210,20 @@ venv()
pip-common()
{
pip install --upgrade mypy black flake8 jedi-language-server pylint build twine grip tox
python3 -m pip install --upgrade --upgrade-strategy eager mypy black flake8 jedi-language-server pylint build twine grip tox pip
}
github-gpg()
{
curl https://github.com/$1.gpg | gpg --import-options show-only --import -
}
download-random-pypi-proj()
{
PKG_URL="$(curl -s https://pypi.org/rss/packages.xml | grep -o 'https://pypi.org/project/[^ <]*' | shuf | head -n 1 | sed 's/project/simple/g')"
ARCHIVE_URL="$(curl -s "$PKG_URL" | grep -o 'https://[^ "#]*' | tail -n 1)"
TMP=pypi_$RANDOM$RANDOM
mkdir /tmp/$TMP/
cd /tmp/$TMP
wget "$ARCHIVE_URL"
}

View File

@ -16,8 +16,15 @@
(require 'package)
(package-initialize)
(server-mode)
(setq exec-path (append exec-path '("/home/mdk/.local/bin")))
(setenv "PATH" ; This is so blacken-mode can find black in ~/.local/bin/
(concat
(getenv "PATH") path-separator
(getenv "HOME") "/.local/bin/"
))
(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
("org" . "https://orgmode.org/elpa/")
("melpa" . "https://melpa.org/packages/")))
@ -38,7 +45,10 @@
(use-package flycheck-grammalecte
:ensure t
:config (flycheck-grammalecte-setup))
:config
(flycheck-grammalecte-setup)
(setq flycheck-global-modes '(not org-mode))
)
(use-package diminish
:ensure t)
@ -92,7 +102,9 @@
(use-package blacken
:ensure t
:commands (blacken-mode)
:hook (python-mode . blacken-mode))
:hook (python-mode . blacken-mode)
:config
(setq blacken-only-if-project-is-blackened t))
(use-package org-fancy-priorities
:ensure t
@ -155,6 +167,9 @@
;; Save all backup file in this directory.
(setq-default delete-old-versions t)
(auto-save-visited-mode t)
(setq auto-save-visited-interval 1)
(fset 'yes-or-no-p 'y-or-n-p)
(setq-default truncate-partial-width-windows nil)
@ -209,7 +224,7 @@
'(c-basic-offset 4)
'(frame-background-mode 'dark)
'(package-selected-packages
'(flycheck-grammalecte blacken spacemacs-theme company yasnippet-snippets use-package zenburn-theme markdown-mode org po-mode yaml-mode)))
'(rust-mode flycheck-grammalecte blacken spacemacs-theme company yasnippet-snippets use-package zenburn-theme markdown-mode org po-mode yaml-mode)))
(load-theme 'spacemacs-light t)
(custom-set-faces
@ -219,5 +234,5 @@
;; If there is more than one, they won't work right.
)
(add-to-list 'default-frame-alist '(font . "LiberationMono:size=18"))
(set-face-attribute 'default t :font "LiberationMono:size=18")
(add-to-list 'default-frame-alist '(font . "DejaVuSansMono:size=18"))
(set-face-attribute 'default t :font "DejaVuSansMono:size=18")

View File

@ -35,7 +35,7 @@ apt install \
keepassxc \
libpq-dev \
python-openssl \
python3-venv \
python3-full \
tk-dev \
unifont
```