Add rainbow-mode configuration

main
Sergio Alvariño 3 years ago
parent b39d7e77db
commit ae0e95933b

@ -180,8 +180,8 @@ Some notes about [[https://github.com/jwiegley/use-package][use-package]]
#+end_src #+end_src
** Kill buffer quick ** Kill buffer quick
Kill current buffer without questions Kill current buffer without questions
#+begin_src emacs-lisp #+begin_src emacs-lisp
;;------------------------------------------------------------ ;;------------------------------------------------------------
;; Kill current buffer with C-Supr ;; Kill current buffer with C-Supr
(defun slv-kill-buffer () (defun slv-kill-buffer ()
@ -190,14 +190,21 @@ Some notes about [[https://github.com/jwiegley/use-package][use-package]]
(kill-buffer (buffer-name)) (kill-buffer (buffer-name))
(set-name)) (set-name))
(global-set-key [C-delete] 'slv-kill-buffer) (global-set-key [C-delete] 'slv-kill-buffer)
#+end_src #+end_src
** rainbow-delimiters ** rainbow-delimiters
#+begin_src emacs-lisp See fancy delimiters
#+begin_src emacs-lisp
(use-package rainbow-delimiters (use-package rainbow-delimiters
:hook (prog-mode . rainbow-delimiters-mode) :hook (prog-mode . rainbow-delimiters-mode)
) )
#+end_src #+end_src
** rainbow-mode
See colors in emacs
#+begin_src emacs-lisp
(use-package rainbow-mode)
#+end_src
** which-key ** which-key
Some help with composed hotkeys Some help with composed hotkeys
@ -521,14 +528,17 @@ Quick navigation to words
#+end_src #+end_src
* Project management with projectile * Project management with projectile
#+begin_src emacs-lisp - [[https://github.com/bbatsov/projectile][Projectile in github]]
- [[https://docs.projectile.mx/projectile/index.html][Online doc]]
#+begin_src emacs-lisp
(use-package projectile (use-package projectile
:init :init
(projectile-global-mode) (projectile-global-mode)
:config :config
(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map) (define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)
) )
#+end_src #+end_src
* Git management * Git management
All you need for git All you need for git
@ -1483,10 +1493,10 @@ Usamos =pyenv= para gestionar los /virtualenv/
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package emmet-mode (use-package emmet-mode
:after (web-mode css-mode sgml-mode) :after (web-mode css-mode sgml-mode)
:config :hook
(add-hook 'sgml-mode-hook 'emmet-mode) ;; Auto-start on any markup modes (sgml-mode-hook emmet-mode) ;; Auto-start on any markup modes
(add-hook 'web-mode-hook 'emmet-mode) ;; Auto-start on any markup modes (web-mode-hook emmet-mode) ;; Auto-start on any markup modes
(add-hook 'css-mode-hook 'emmet-mode) ;; enable Emmet's css abbreviation. (css-mode-hook emmet-mode) ;; enable Emmet's css abbreviation.
:bind :bind
("C-j" . emmet-expand-line) ("C-j" . emmet-expand-line)
) )

Loading…
Cancel
Save