|
|
|
@ -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)
|
|
|
|
|
)
|
|
|
|
|