mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-11 19:45:25 +03:00
Compare commits
No commits in common. "523a36b8f10f77c308b40baa80163969ef654044" and "88642f01e84809e952b3a7e3aa4c2d6456d17416" have entirely different histories.
523a36b8f1
...
88642f01e8
9 changed files with 53 additions and 32 deletions
|
|
@ -1,5 +1,4 @@
|
|||
arch = [
|
||||
"bashmount",
|
||||
"pv",
|
||||
"man-db",
|
||||
"aria2",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
arch = [
|
||||
"uv",
|
||||
"dbeaver",
|
||||
"rust",
|
||||
"git",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
arch = [
|
||||
"digikam",
|
||||
"rocketchat-desktop",
|
||||
"obs-studio",
|
||||
"okular",
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ x-scheme-handler/tg=userapp-Telegram Desktop-7PVWF1.desktop
|
|||
image/png=feh.desktop
|
||||
image/jpg=feh.desktop
|
||||
image/jpeg=feh.desktop
|
||||
video/webm=mpv.desktop
|
||||
application/pdf=org.pwmt.zathura.desktop
|
||||
|
||||
[Added Associations]
|
||||
|
|
|
|||
|
|
@ -1,10 +0,0 @@
|
|||
Alt+- add video-zoom -0.25
|
||||
Alt+= add video-zoom 0.25
|
||||
|
||||
Alt+h add video-pan-x 0.05
|
||||
Alt+l add video-pan-x -0.05
|
||||
Alt+k add video-pan-y 0.05
|
||||
Alt+j add video-pan-y -0.05
|
||||
|
||||
Shift+m cycle-values audio-channels "auto-safe" "mono"
|
||||
r cycle_values video-rotate 90 180 270 0
|
||||
|
|
@ -1,14 +1,24 @@
|
|||
;;; -*- lexical-binding: t -*-
|
||||
(use-package ein
|
||||
:commands (ein:run)
|
||||
:disabled
|
||||
:straight t)
|
||||
|
||||
(setq my/pipenv-python-alist '())
|
||||
|
||||
(defun my/get-pipenv-python ()
|
||||
(let ((default-directory (projectile-project-root)))
|
||||
(cond ((file-exists-p ".venv/bin/python")
|
||||
(expand-file-name ".venv/bin/python"))
|
||||
(t (executable-find "python")))))
|
||||
(if (file-exists-p "Pipfile")
|
||||
(let ((asc (assoc default-directory my/pipenv-python-alist)))
|
||||
(if asc
|
||||
(cdr asc)
|
||||
(let ((python-executable
|
||||
(string-trim (shell-command-to-string "PIPENV_IGNORE_VIRTUALENVS=1 pipenv run which python 2>/dev/null"))))
|
||||
(if (string-match-p ".*not found.*" python-executable)
|
||||
(message "Pipfile found, but not pipenv executable!")
|
||||
(message (format "Found pipenv python: %s" python-executable))
|
||||
(add-to-list 'my/pipenv-python-alist (cons default-directory python-executable))
|
||||
python-executable))))
|
||||
"python")))
|
||||
|
||||
(use-package lsp-pyright
|
||||
:straight t
|
||||
|
|
@ -21,6 +31,14 @@
|
|||
(add-hook 'python-mode-hook #'smartparens-mode)
|
||||
(add-hook 'python-mode-hook #'treesit-fold-mode)
|
||||
|
||||
(use-package pipenv
|
||||
:straight t
|
||||
:hook (python-mode . pipenv-mode)
|
||||
:init
|
||||
(setq
|
||||
pipenv-projectile-after-switch-function
|
||||
#'pipenv-projectile-after-switch-extended))
|
||||
|
||||
(use-package yapfify
|
||||
:straight (:repo "JorisE/yapfify" :host github)
|
||||
:disabled
|
||||
|
|
@ -110,7 +128,6 @@
|
|||
|
||||
(use-package code-cells
|
||||
:straight t
|
||||
:disabled
|
||||
:commands (code-cells-mode code-cells-convert-ipynb))
|
||||
|
||||
(setq my/tensorboard-buffer "TensorBoard-out")
|
||||
|
|
|
|||
|
|
@ -947,7 +947,6 @@ keymap_mode = "vim-insert"
|
|||
| aria2 | Download tool | |
|
||||
| man-db | | |
|
||||
| pv | | |
|
||||
| bashmount | TUI to manage mounts | |
|
||||
|
||||
** ripgrep config
|
||||
Occasionally I can't exclude certain files from ripgrep via the VCS settings, so here is a simple config to ignore certain files globally.
|
||||
|
|
|
|||
|
|
@ -4239,7 +4239,6 @@ This section generates manifests for various desktop software that I'm using.
|
|||
| office | okular |
|
||||
| office | obs-studio |
|
||||
| office | rocketchat-desktop |
|
||||
| office | digikam |
|
||||
|
||||
** LaTeX
|
||||
| Category | Arch dependency | Disabled |
|
||||
|
|
@ -4301,7 +4300,6 @@ This section generates manifests for various desktop software that I'm using.
|
|||
| dev | git | |
|
||||
| dev | rust | |
|
||||
| dev | dbeaver | |
|
||||
| dev | uv | |
|
||||
** Manifests
|
||||
#+NAME: packages
|
||||
#+begin_src emacs-lisp :tangle no :var category=""
|
||||
|
|
|
|||
41
Emacs.org
41
Emacs.org
|
|
@ -4493,25 +4493,33 @@ An honorary Lisp.
|
|||
:MODULE_NAME: misc-programming
|
||||
:header-args:emacs-lisp: :tangle /home/pavel/.emacs.d/modules/sqrt-misc-programming.el :comments links
|
||||
:END:
|
||||
*** OFF (OFF) ein
|
||||
CLOSED: [2025-11-24 Mon 18:13]
|
||||
*** ein
|
||||
[[https://github.com/millejoh/emacs-ipython-notebook][ein]] is a package that allows for running Jupyter notebooks in Emacs.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(use-package ein
|
||||
:commands (ein:run)
|
||||
:disabled
|
||||
:straight t)
|
||||
#+end_src
|
||||
*** pyright
|
||||
A fix to use it with =uv=.
|
||||
|
||||
For some reason it doesn't use pipenv python executable, so here is a small workaround.
|
||||
#+begin_src emacs-lisp
|
||||
(setq my/pipenv-python-alist '())
|
||||
|
||||
(defun my/get-pipenv-python ()
|
||||
(let ((default-directory (projectile-project-root)))
|
||||
(cond ((file-exists-p ".venv/bin/python")
|
||||
(expand-file-name ".venv/bin/python"))
|
||||
(t (executable-find "python")))))
|
||||
(if (file-exists-p "Pipfile")
|
||||
(let ((asc (assoc default-directory my/pipenv-python-alist)))
|
||||
(if asc
|
||||
(cdr asc)
|
||||
(let ((python-executable
|
||||
(string-trim (shell-command-to-string "PIPENV_IGNORE_VIRTUALENVS=1 pipenv run which python 2>/dev/null"))))
|
||||
(if (string-match-p ".*not found.*" python-executable)
|
||||
(message "Pipfile found, but not pipenv executable!")
|
||||
(message (format "Found pipenv python: %s" python-executable))
|
||||
(add-to-list 'my/pipenv-python-alist (cons default-directory python-executable))
|
||||
python-executable))))
|
||||
"python")))
|
||||
|
||||
(use-package lsp-pyright
|
||||
:straight t
|
||||
|
|
@ -4524,6 +4532,20 @@ A fix to use it with =uv=.
|
|||
(add-hook 'python-mode-hook #'smartparens-mode)
|
||||
(add-hook 'python-mode-hook #'treesit-fold-mode)
|
||||
#+end_src
|
||||
*** pipenv
|
||||
[[https://github.com/pypa/pipenv][Pipenv]] is a package manager for Python.
|
||||
|
||||
Automatically creates & manages virtualenvs and stores data in =Pipfile= and =Pipfile.lock= (like npm's =package.json= and =package-lock.json=).
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(use-package pipenv
|
||||
:straight t
|
||||
:hook (python-mode . pipenv-mode)
|
||||
:init
|
||||
(setq
|
||||
pipenv-projectile-after-switch-function
|
||||
#'pipenv-projectile-after-switch-extended))
|
||||
#+end_src
|
||||
*** OFF (OFF) yapf
|
||||
[[https://github.com/google/yapf][yapf]] is a formatter for Python files.
|
||||
|
||||
|
|
@ -4688,7 +4710,7 @@ To fix that, I've modified the following function in the =python-pytest= package
|
|||
(setq process (get-buffer-process buffer))
|
||||
(set-process-sentinel process #'python-pytest--process-sentinel))))
|
||||
#+end_src
|
||||
*** OFF (OFF) code-cells
|
||||
*** code-cells
|
||||
Support for text with magic comments.
|
||||
|
||||
| Arch dependency | Disabled |
|
||||
|
|
@ -4698,7 +4720,6 @@ Support for text with magic comments.
|
|||
#+begin_src emacs-lisp
|
||||
(use-package code-cells
|
||||
:straight t
|
||||
:disabled
|
||||
:commands (code-cells-mode code-cells-convert-ipynb))
|
||||
#+end_src
|
||||
*** tensorboard
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue