From ae0e95933bdc5e947a02c33c3706e8190b668b48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Alvari=C3=B1o?= Date: Tue, 12 Apr 2022 21:27:35 +0200 Subject: [PATCH] Add rainbow-mode configuration --- myconfig.org | 66 ++++++++++++++++++++++++++++++---------------------- 1 file changed, 38 insertions(+), 28 deletions(-) diff --git a/myconfig.org b/myconfig.org index 3b98c5c..a3d3e33 100644 --- a/myconfig.org +++ b/myconfig.org @@ -180,24 +180,31 @@ Some notes about [[https://github.com/jwiegley/use-package][use-package]] #+end_src ** Kill buffer quick - Kill current buffer without questions - #+begin_src emacs-lisp - ;;------------------------------------------------------------ - ;; Kill current buffer with C-Supr - (defun slv-kill-buffer () - ;; Kill default buffer without the extra emacs questions - (interactive) - (kill-buffer (buffer-name)) - (set-name)) - (global-set-key [C-delete] 'slv-kill-buffer) - #+end_src +Kill current buffer without questions +#+begin_src emacs-lisp + ;;------------------------------------------------------------ + ;; Kill current buffer with C-Supr + (defun slv-kill-buffer () + ;; Kill default buffer without the extra emacs questions + (interactive) + (kill-buffer (buffer-name)) + (set-name)) + (global-set-key [C-delete] 'slv-kill-buffer) +#+end_src ** rainbow-delimiters - #+begin_src emacs-lisp - (use-package rainbow-delimiters - :hook (prog-mode . rainbow-delimiters-mode) - ) - #+end_src +See fancy delimiters +#+begin_src emacs-lisp + (use-package rainbow-delimiters + :hook (prog-mode . rainbow-delimiters-mode) + ) +#+end_src + +** rainbow-mode +See colors in emacs +#+begin_src emacs-lisp + (use-package rainbow-mode) +#+end_src ** which-key Some help with composed hotkeys @@ -521,14 +528,17 @@ Quick navigation to words #+end_src * Project management with projectile - #+begin_src emacs-lisp - (use-package projectile - :init - (projectile-global-mode) - :config - (define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map) - ) - #+end_src +- [[https://github.com/bbatsov/projectile][Projectile in github]] +- [[https://docs.projectile.mx/projectile/index.html][Online doc]] + +#+begin_src emacs-lisp + (use-package projectile + :init + (projectile-global-mode) + :config + (define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map) + ) +#+end_src * Git management All you need for git @@ -1483,10 +1493,10 @@ Usamos =pyenv= para gestionar los /virtualenv/ #+begin_src emacs-lisp (use-package emmet-mode :after (web-mode css-mode sgml-mode) - :config - (add-hook 'sgml-mode-hook 'emmet-mode) ;; Auto-start on any markup modes - (add-hook 'web-mode-hook 'emmet-mode) ;; Auto-start on any markup modes - (add-hook 'css-mode-hook 'emmet-mode) ;; enable Emmet's css abbreviation. + :hook + (sgml-mode-hook emmet-mode) ;; Auto-start on any markup modes + (web-mode-hook emmet-mode) ;; Auto-start on any markup modes + (css-mode-hook emmet-mode) ;; enable Emmet's css abbreviation. :bind ("C-j" . emmet-expand-line) )