|
|
@ -180,24 +180,31 @@ 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 ()
|
|
|
|
;; Kill default buffer without the extra emacs questions
|
|
|
|
;; Kill default buffer without the extra emacs questions
|
|
|
|
(interactive)
|
|
|
|
(interactive)
|
|
|
|
(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
|
|
|
|
(use-package rainbow-delimiters
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
:hook (prog-mode . rainbow-delimiters-mode)
|
|
|
|
(use-package rainbow-delimiters
|
|
|
|
)
|
|
|
|
: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]]
|
|
|
|
(use-package projectile
|
|
|
|
- [[https://docs.projectile.mx/projectile/index.html][Online doc]]
|
|
|
|
:init
|
|
|
|
|
|
|
|
(projectile-global-mode)
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
:config
|
|
|
|
(use-package projectile
|
|
|
|
(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)
|
|
|
|
:init
|
|
|
|
)
|
|
|
|
(projectile-global-mode)
|
|
|
|
#+end_src
|
|
|
|
:config
|
|
|
|
|
|
|
|
(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
#+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)
|
|
|
|
)
|
|
|
|
)
|
|
|
|