More erc config for emacs
This commit is contained in:
parent
62e7e0f62f
commit
cea675c2f2
@ -82,7 +82,7 @@ Add a nice visualization for tabs and spaces. This can be helpful to identify wh
|
|||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(global-whitespace-mode)
|
(global-whitespace-mode)
|
||||||
(setq whitespace-global-modes '(not org-mode dired-mode))
|
(setq whitespace-global-modes '(not org-mode dired-mode erc-mode))
|
||||||
(setq whitespace-style '(face tabs spaces tab-mark space-mark trailing))
|
(setq whitespace-style '(face tabs spaces tab-mark space-mark trailing))
|
||||||
(custom-set-faces
|
(custom-set-faces
|
||||||
'(whitespace-tab ((t (:foreground "#384551"))))
|
'(whitespace-tab ((t (:foreground "#384551"))))
|
||||||
@ -298,6 +298,7 @@ This adds relative line numbers while excluding certain modes.
|
|||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
; Disable line numbers for certain modes
|
; Disable line numbers for certain modes
|
||||||
(dolist (mode '(org-mode-hook
|
(dolist (mode '(org-mode-hook
|
||||||
|
erc-mode-hook
|
||||||
term-mode-hook
|
term-mode-hook
|
||||||
vterm-mode-hook
|
vterm-mode-hook
|
||||||
shell-mode-hook
|
shell-mode-hook
|
||||||
@ -356,7 +357,11 @@ General allows you to setup a prefix key easily. This makes it really easy to se
|
|||||||
|
|
||||||
; Emacs related keybindings
|
; Emacs related keybindings
|
||||||
"er" '((lambda () (interactive) (load-file "~/.emacs")) :which-key "Reload emacs config")
|
"er" '((lambda () (interactive) (load-file "~/.emacs")) :which-key "Reload emacs config")
|
||||||
"es" '(eshell :which-key "Open eshell terminal")))
|
"es" '(eshell :which-key "Open eshell terminal")
|
||||||
|
|
||||||
|
; ERC related keybindings
|
||||||
|
"cc" '(erc-tls :which-key "Quick-connect to IRC")
|
||||||
|
"cb" '(erc-switch-to-buffer :which-key "Switch IRC buffers")))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** Evil
|
*** Evil
|
||||||
@ -485,11 +490,10 @@ ERC is a builtin package that adds IRC chatting functionality to emacs.
|
|||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
|
||||||
; Basic autofill information
|
(setq erc-nick "random936"
|
||||||
(setq erc-nick "random936")
|
erc-hide-list '("JOIN" "PART" "QUIT")
|
||||||
|
erc-track-exclude-types '("JOIN" "NICK" "PART" "QUIT" "353")
|
||||||
; Cosmetic config
|
erc-fill-column 120
|
||||||
(setq erc-fill-column 120
|
|
||||||
erc-fill-function 'erc-fill-static
|
erc-fill-function 'erc-fill-static
|
||||||
erc-fill-static-center 20
|
erc-fill-static-center 20
|
||||||
erc-kill-buffer-on-part t)
|
erc-kill-buffer-on-part t)
|
||||||
@ -499,8 +503,14 @@ To highlight each nickname with a different color, I can use the ~erc-hl-nicks~
|
|||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package erc-hl-nicks
|
(use-package erc-hl-nicks
|
||||||
:after erc
|
:after erc)
|
||||||
:config (add-to-list 'erc-modules 'hl-nicks))
|
#+end_src
|
||||||
|
|
||||||
|
I can also use the ~erc-image~ package to render images sent by other users over IRC.
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package erc-image
|
||||||
|
:after erc)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Import Other Files
|
* Import Other Files
|
||||||
|
Loading…
x
Reference in New Issue
Block a user