mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-10 19:23:03 +03:00
feat(emacs): forge & update ERC
This commit is contained in:
parent
d5409891f0
commit
fcca97d554
2 changed files with 46 additions and 8 deletions
|
|
@ -63,15 +63,23 @@
|
||||||
(setq conda-anaconda-home (string-replace "/bin/conda" "" (executable-find "conda")))
|
(setq conda-anaconda-home (string-replace "/bin/conda" "" (executable-find "conda")))
|
||||||
(setq conda-env-home-directory (expand-file-name "~/.conda/"))
|
(setq conda-env-home-directory (expand-file-name "~/.conda/"))
|
||||||
(setq conda-env-subdirectory "envs")
|
(setq conda-env-subdirectory "envs")
|
||||||
(setenv "INIT_CONDA" "true")
|
|
||||||
(advice-add 'conda-env-activate :after
|
(advice-add 'conda-env-activate :after
|
||||||
(lambda (&rest _) (setenv "EMACS_CONDA_ENV" conda-env-current-name)))
|
(lambda (&rest _)
|
||||||
|
(setenv "EMACS_CONDA_ENV" conda-env-current-name)
|
||||||
|
(setenv "INIT_CONDA" "true"))
|
||||||
|
(advice-add 'conda-env-deactivate :after
|
||||||
|
(lambda (&rest _)
|
||||||
|
(setenv "EMACS_CONDA_ENV" nil)
|
||||||
|
(setenv "INIT_CONDA" nil)))
|
||||||
(unless (getenv "CONDA_DEFAULT_ENV")
|
(unless (getenv "CONDA_DEFAULT_ENV")
|
||||||
(conda-env-activate "general")))
|
(conda-env-activate "general")))
|
||||||
|
|
||||||
(setq custom-file (concat user-emacs-directory "custom.el"))
|
(setq custom-file (concat user-emacs-directory "custom.el"))
|
||||||
(load custom-file 'noerror)
|
(load custom-file 'noerror)
|
||||||
|
|
||||||
|
(setq auth-source-debug nil)
|
||||||
|
|
||||||
(let ((private-file (expand-file-name "private.el" user-emacs-directory)))
|
(let ((private-file (expand-file-name "private.el" user-emacs-directory)))
|
||||||
(when (file-exists-p private-file)
|
(when (file-exists-p private-file)
|
||||||
(load-file private-file)))
|
(load-file private-file)))
|
||||||
|
|
@ -620,6 +628,15 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
||||||
(show-lines . t)
|
(show-lines . t)
|
||||||
(show-message . t)))))
|
(show-message . t)))))
|
||||||
|
|
||||||
|
(use-package forge
|
||||||
|
:after magit
|
||||||
|
:straight t
|
||||||
|
:config
|
||||||
|
(add-to-list 'forge-alist '("gitlab.etu.ru"
|
||||||
|
"gitlab.etu.ru/api/v4"
|
||||||
|
"gitlab.etu.ru"
|
||||||
|
forge-gitlab-repository)))
|
||||||
|
|
||||||
(use-package git-gutter
|
(use-package git-gutter
|
||||||
:straight t
|
:straight t
|
||||||
:if (not my/slow-ssh)
|
:if (not my/slow-ssh)
|
||||||
|
|
@ -1193,7 +1210,7 @@ _r_: Restart frame _uo_: Output _sd_: Down stack frame _bh_: Set
|
||||||
("ue" my/dap-ui-toggle-expressions)
|
("ue" my/dap-ui-toggle-expressions)
|
||||||
("ul" my/dap-ui-toggle-locals)
|
("ul" my/dap-ui-toggle-locals)
|
||||||
("ur" my/dap-ui-toggle-repl)
|
("ur" my/dap-ui-toggle-repl)
|
||||||
("uo" dap-ui-go-to-output-buffer)
|
("uo" dap-go-to-output-buffer)
|
||||||
("us" my/dap-ui-toggle-sessions)
|
("us" my/dap-ui-toggle-sessions)
|
||||||
("ub" my/dap-ui-toggle-breakpoints)
|
("ub" my/dap-ui-toggle-breakpoints)
|
||||||
("ss" dap-switch-session)
|
("ss" dap-switch-session)
|
||||||
|
|
@ -4302,7 +4319,7 @@ Returns (<buffer> . <workspace-index>) or nil."
|
||||||
(setq erc-save-buffer-on-part t)
|
(setq erc-save-buffer-on-part t)
|
||||||
;; Config of my ZNC instance.
|
;; Config of my ZNC instance.
|
||||||
(setq erc-server "sqrtminusone.xyz")
|
(setq erc-server "sqrtminusone.xyz")
|
||||||
(setq erc-port 1984)
|
(setq erc-port 6697)
|
||||||
(setq erc-nick "sqrtminusone")
|
(setq erc-nick "sqrtminusone")
|
||||||
(setq erc-user-full-name "Pavel Korytov")
|
(setq erc-user-full-name "Pavel Korytov")
|
||||||
(setq erc-password (password-store-get "Selfhosted/ZNC"))
|
(setq erc-password (password-store-get "Selfhosted/ZNC"))
|
||||||
|
|
|
||||||
29
Emacs.org
29
Emacs.org
|
|
@ -475,9 +475,15 @@ References:
|
||||||
(setq conda-anaconda-home (string-replace "/bin/conda" "" (executable-find "conda")))
|
(setq conda-anaconda-home (string-replace "/bin/conda" "" (executable-find "conda")))
|
||||||
(setq conda-env-home-directory (expand-file-name "~/.conda/"))
|
(setq conda-env-home-directory (expand-file-name "~/.conda/"))
|
||||||
(setq conda-env-subdirectory "envs")
|
(setq conda-env-subdirectory "envs")
|
||||||
(setenv "INIT_CONDA" "true")
|
|
||||||
(advice-add 'conda-env-activate :after
|
(advice-add 'conda-env-activate :after
|
||||||
(lambda (&rest _) (setenv "EMACS_CONDA_ENV" conda-env-current-name)))
|
(lambda (&rest _)
|
||||||
|
(setenv "EMACS_CONDA_ENV" conda-env-current-name)
|
||||||
|
(setenv "INIT_CONDA" "true"))
|
||||||
|
(advice-add 'conda-env-deactivate :after
|
||||||
|
(lambda (&rest _)
|
||||||
|
(setenv "EMACS_CONDA_ENV" nil)
|
||||||
|
(setenv "INIT_CONDA" nil)))
|
||||||
(unless (getenv "CONDA_DEFAULT_ENV")
|
(unless (getenv "CONDA_DEFAULT_ENV")
|
||||||
(conda-env-activate "general")))
|
(conda-env-activate "general")))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
@ -489,6 +495,10 @@ By default, custom writes stuff to =init.el=, which is somewhat annoying. The fo
|
||||||
(setq custom-file (concat user-emacs-directory "custom.el"))
|
(setq custom-file (concat user-emacs-directory "custom.el"))
|
||||||
(load custom-file 'noerror)
|
(load custom-file 'noerror)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
*** authinfo
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(setq auth-source-debug nil)
|
||||||
|
#+end_src
|
||||||
*** Private config
|
*** Private config
|
||||||
I have some variables which I don't commit to the repo, e.g. my current location. They are stored in =private.el=
|
I have some variables which I don't commit to the repo, e.g. my current location. They are stored in =private.el=
|
||||||
|
|
||||||
|
|
@ -1292,6 +1302,8 @@ Function to open dired and vterm at given nodes.
|
||||||
*** Git & Magit
|
*** Git & Magit
|
||||||
[[https://magit.vc/][Magit]] is a git interface for Emacs. The closest non-Emacs alternative (sans actual clones) I know is [[https://github.com/jesseduffield/lazygit][lazygit]], which I used before Emacs.
|
[[https://magit.vc/][Magit]] is a git interface for Emacs. The closest non-Emacs alternative (sans actual clones) I know is [[https://github.com/jesseduffield/lazygit][lazygit]], which I used before Emacs.
|
||||||
|
|
||||||
|
[[https://github.com/magit/forge][forge]] provides integration with forges, such as GitHub and GitLab.
|
||||||
|
|
||||||
[[https://github.com/emacsorphanage/git-gutter][git-gutter]] is a package which shows git changes for each line (added/changed/deleted lines).
|
[[https://github.com/emacsorphanage/git-gutter][git-gutter]] is a package which shows git changes for each line (added/changed/deleted lines).
|
||||||
|
|
||||||
[[https://github.com/emacsmirror/git-timemachine][git-timemachine]] allows visiting previous versions of a file.
|
[[https://github.com/emacsmirror/git-timemachine][git-timemachine]] allows visiting previous versions of a file.
|
||||||
|
|
@ -1315,6 +1327,15 @@ Function to open dired and vterm at given nodes.
|
||||||
(show-lines . t)
|
(show-lines . t)
|
||||||
(show-message . t)))))
|
(show-message . t)))))
|
||||||
|
|
||||||
|
(use-package forge
|
||||||
|
:after magit
|
||||||
|
:straight t
|
||||||
|
:config
|
||||||
|
(add-to-list 'forge-alist '("gitlab.etu.ru"
|
||||||
|
"gitlab.etu.ru/api/v4"
|
||||||
|
"gitlab.etu.ru"
|
||||||
|
forge-gitlab-repository)))
|
||||||
|
|
||||||
(use-package git-gutter
|
(use-package git-gutter
|
||||||
:straight t
|
:straight t
|
||||||
:if (not my/slow-ssh)
|
:if (not my/slow-ssh)
|
||||||
|
|
@ -2133,7 +2154,7 @@ _r_: Restart frame _uo_: Output _sd_: Down stack frame _bh_: Set
|
||||||
("ue" my/dap-ui-toggle-expressions)
|
("ue" my/dap-ui-toggle-expressions)
|
||||||
("ul" my/dap-ui-toggle-locals)
|
("ul" my/dap-ui-toggle-locals)
|
||||||
("ur" my/dap-ui-toggle-repl)
|
("ur" my/dap-ui-toggle-repl)
|
||||||
("uo" dap-ui-go-to-output-buffer)
|
("uo" dap-go-to-output-buffer)
|
||||||
("us" my/dap-ui-toggle-sessions)
|
("us" my/dap-ui-toggle-sessions)
|
||||||
("ub" my/dap-ui-toggle-breakpoints)
|
("ub" my/dap-ui-toggle-breakpoints)
|
||||||
("ss" dap-switch-session)
|
("ss" dap-switch-session)
|
||||||
|
|
@ -6252,7 +6273,7 @@ ERC is a built-it Emacs IRC client.
|
||||||
(setq erc-save-buffer-on-part t)
|
(setq erc-save-buffer-on-part t)
|
||||||
;; Config of my ZNC instance.
|
;; Config of my ZNC instance.
|
||||||
(setq erc-server "sqrtminusone.xyz")
|
(setq erc-server "sqrtminusone.xyz")
|
||||||
(setq erc-port 1984)
|
(setq erc-port 6697)
|
||||||
(setq erc-nick "sqrtminusone")
|
(setq erc-nick "sqrtminusone")
|
||||||
(setq erc-user-full-name "Pavel Korytov")
|
(setq erc-user-full-name "Pavel Korytov")
|
||||||
(setq erc-password (password-store-get "Selfhosted/ZNC"))
|
(setq erc-password (password-store-get "Selfhosted/ZNC"))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue