|
|
@ -64,7 +64,7 @@ Some notes about [[https://github.com/jwiegley/use-package][use-package]]
|
|
|
|
|
|
|
|
|
|
|
|
* Interface tweaks
|
|
|
|
* Interface tweaks
|
|
|
|
** Some GUI optimizations
|
|
|
|
** Some GUI optimizations
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
;; sets default font
|
|
|
|
;; sets default font
|
|
|
|
(set-face-attribute 'default nil :family "Mensch" :foundry "PfEd" :height 158)
|
|
|
|
(set-face-attribute 'default nil :family "Mensch" :foundry "PfEd" :height 158)
|
|
|
|
|
|
|
|
|
|
|
@ -96,26 +96,26 @@ Some notes about [[https://github.com/jwiegley/use-package][use-package]]
|
|
|
|
;; Override some modes which derive from the above
|
|
|
|
;; Override some modes which derive from the above
|
|
|
|
(dolist (mode '(org-mode-hook))
|
|
|
|
(dolist (mode '(org-mode-hook))
|
|
|
|
(add-hook mode (lambda () (display-line-numbers-mode 0))))
|
|
|
|
(add-hook mode (lambda () (display-line-numbers-mode 0))))
|
|
|
|
#+end_src
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
|
|
** Set encoding
|
|
|
|
** Set encoding
|
|
|
|
Use utf-8 please
|
|
|
|
Use utf-8 please
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
;; Set encoding
|
|
|
|
;; Set encoding
|
|
|
|
(prefer-coding-system 'utf-8)
|
|
|
|
(prefer-coding-system 'utf-8)
|
|
|
|
#+end_src
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
|
|
** Some shortcuts
|
|
|
|
** Some shortcuts
|
|
|
|
Useful shortcuts:
|
|
|
|
Useful shortcuts:
|
|
|
|
- Revert buffer (recargar)
|
|
|
|
- Revert buffer (recargar)
|
|
|
|
- fichero org de configuración de emacs
|
|
|
|
- fichero org de configuración de emacs
|
|
|
|
- fichero org ppal, aquí está todo
|
|
|
|
- fichero org ppal, aquí está todo
|
|
|
|
- journal org file
|
|
|
|
- journal org file
|
|
|
|
- org para el blog público, ideas para el blog
|
|
|
|
- org para el blog público, ideas para el blog
|
|
|
|
- org para el blog privado
|
|
|
|
- org para el blog privado
|
|
|
|
- org notes file: para tomar una nota rápida, no lo uso mucho
|
|
|
|
- org notes file: para tomar una nota rápida, no lo uso mucho
|
|
|
|
- phone org file: por si tomo notas en el teléfono, no lo uso mucho
|
|
|
|
- phone org file: por si tomo notas en el teléfono, no lo uso mucho
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
(global-set-key (kbd "<f5>") 'revert-buffer)
|
|
|
|
(global-set-key (kbd "<f5>") 'revert-buffer)
|
|
|
|
;; emacs configuration org file
|
|
|
|
;; emacs configuration org file
|
|
|
|
(global-set-key
|
|
|
|
(global-set-key
|
|
|
@ -155,30 +155,30 @@ Some notes about [[https://github.com/jwiegley/use-package][use-package]]
|
|
|
|
(global-set-key [C-kp-decimal] 'completion-at-point) ; complete at point
|
|
|
|
(global-set-key [C-kp-decimal] 'completion-at-point) ; complete at point
|
|
|
|
(global-set-key [C-M-prior] 'previous-buffer) ; previous-buffer
|
|
|
|
(global-set-key [C-M-prior] 'previous-buffer) ; previous-buffer
|
|
|
|
(global-set-key [C-M-next] 'next-buffer) ; next-buffer
|
|
|
|
(global-set-key [C-M-next] 'next-buffer) ; next-buffer
|
|
|
|
#+end_src
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
|
|
** Own map
|
|
|
|
** Own map
|
|
|
|
Defines own key map
|
|
|
|
Defines own key map
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
(define-prefix-command 'own-map)
|
|
|
|
(define-prefix-command 'own-map)
|
|
|
|
(global-set-key (kbd "C-ñ") 'own-map)
|
|
|
|
(global-set-key (kbd "C-ñ") 'own-map)
|
|
|
|
(define-key own-map (kbd "y") 'aya-create)
|
|
|
|
(define-key own-map (kbd "y") 'aya-create)
|
|
|
|
(define-key own-map (kbd "e") 'aya-expand)
|
|
|
|
(define-key own-map (kbd "e") 'aya-expand)
|
|
|
|
#+end_src
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
|
|
** General (a new binding system)
|
|
|
|
** General (a new binding system)
|
|
|
|
Have a look at [[https://github.com/noctuid/general.el#key-features][doc]]
|
|
|
|
Have a look at [[https://github.com/noctuid/general.el#key-features][doc]]
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
;; (use-package general)
|
|
|
|
;; (use-package general)
|
|
|
|
#+end_src
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
|
|
** Syntax highlight
|
|
|
|
** Syntax highlight
|
|
|
|
Set maximum colors
|
|
|
|
Set maximum colors
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
(cond ((fboundp 'global-font-lock-mode) ; Turn on font-lock (syntax highlighting)
|
|
|
|
(cond ((fboundp 'global-font-lock-mode) ; Turn on font-lock (syntax highlighting)
|
|
|
|
(global-font-lock-mode t) ; in all modes that support it
|
|
|
|
(global-font-lock-mode t) ; in all modes that support it
|
|
|
|
(setq font-lock-maximum-decoration t))) ; Maximum colors
|
|
|
|
(setq font-lock-maximum-decoration t))) ; Maximum colors
|
|
|
|
#+end_src
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
|
|
** Kill buffer quick
|
|
|
|
** Kill buffer quick
|
|
|
|
Kill current buffer without questions
|
|
|
|
Kill current buffer without questions
|
|
|
@ -208,19 +208,19 @@ See colors in emacs
|
|
|
|
#+end_src
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
|
|
** which-key
|
|
|
|
** which-key
|
|
|
|
Some help with composed hotkeys
|
|
|
|
Some help with composed hotkeys
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
(use-package which-key
|
|
|
|
(use-package which-key
|
|
|
|
:diminish
|
|
|
|
:diminish
|
|
|
|
:config
|
|
|
|
:config
|
|
|
|
(which-key-mode)
|
|
|
|
(which-key-mode)
|
|
|
|
(setq which-key-idle-delay 0.3)
|
|
|
|
(setq which-key-idle-delay 0.3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
#+end_src
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
|
|
** ace-windows
|
|
|
|
** ace-windows
|
|
|
|
To jump to different windows easily
|
|
|
|
To jump to different windows easily
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
(use-package ace-window
|
|
|
|
(use-package ace-window
|
|
|
|
:init
|
|
|
|
:init
|
|
|
|
(global-set-key [remap other-window] 'ace-window)
|
|
|
|
(global-set-key [remap other-window] 'ace-window)
|
|
|
@ -228,23 +228,23 @@ See colors in emacs
|
|
|
|
'(aw-leading-char-face
|
|
|
|
'(aw-leading-char-face
|
|
|
|
((t (:inherit ace-jump-face-foreground :height 3.0)))))
|
|
|
|
((t (:inherit ace-jump-face-foreground :height 3.0)))))
|
|
|
|
)
|
|
|
|
)
|
|
|
|
#+end_src
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
|
|
** PCRE2el
|
|
|
|
** PCRE2el
|
|
|
|
Perl Compatible Regexes
|
|
|
|
Perl Compatible Regexes
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
(use-package pcre2el
|
|
|
|
(use-package pcre2el
|
|
|
|
:config
|
|
|
|
:config
|
|
|
|
(pcre-mode +1))
|
|
|
|
(pcre-mode +1))
|
|
|
|
#+end_src
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
|
|
** Enable narrowing (DANGER)
|
|
|
|
** Enable narrowing (DANGER)
|
|
|
|
C-x n ...
|
|
|
|
C-x n ...
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
(put 'narrow-to-defun 'disabled nil)
|
|
|
|
(put 'narrow-to-defun 'disabled nil)
|
|
|
|
(put 'narrow-to-page 'disabled nil)
|
|
|
|
(put 'narrow-to-page 'disabled nil)
|
|
|
|
(put 'narrow-to-region 'disabled nil)
|
|
|
|
(put 'narrow-to-region 'disabled nil)
|
|
|
|
#+end_src
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
|
|
** Insert-date
|
|
|
|
** Insert-date
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
#+begin_src emacs-lisp
|
|
|
@ -267,10 +267,10 @@ See colors in emacs
|
|
|
|
#+end_src
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
|
|
* doom-modeline
|
|
|
|
* doom-modeline
|
|
|
|
A fancy modeline. Remember to execute =M-x all-the-icons-install-fonts=
|
|
|
|
A fancy modeline. Remember to execute =M-x all-the-icons-install-fonts=
|
|
|
|
See [[http://sodaware.sdf.org/notes/emacs-daemon-doom-modeline-icons/][this]] for fixing icons in terminal
|
|
|
|
See [[http://sodaware.sdf.org/notes/emacs-daemon-doom-modeline-icons/][this]] for fixing icons in terminal
|
|
|
|
|
|
|
|
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
(use-package all-the-icons
|
|
|
|
(use-package all-the-icons
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(use-package doom-modeline
|
|
|
|
(use-package doom-modeline
|
|
|
@ -281,7 +281,7 @@ See colors in emacs
|
|
|
|
(doom-modeline-height 15)
|
|
|
|
(doom-modeline-height 15)
|
|
|
|
;;(doom-modeline-icon (display-graphic-p))
|
|
|
|
;;(doom-modeline-icon (display-graphic-p))
|
|
|
|
)
|
|
|
|
)
|
|
|
|
#+end_src
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
|
|
* color-theme
|
|
|
|
* color-theme
|
|
|
|
Get some colour in your life
|
|
|
|
Get some colour in your life
|
|
|
@ -328,8 +328,8 @@ Try =M-x consult-theme=
|
|
|
|
|
|
|
|
|
|
|
|
* Completion systems
|
|
|
|
* Completion systems
|
|
|
|
** Vertico (the choosed one)
|
|
|
|
** Vertico (the choosed one)
|
|
|
|
Have a look [[https://github.com/minad/vertico][here]]
|
|
|
|
Have a look [[https://github.com/minad/vertico][here]]
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
(use-package vertico
|
|
|
|
(use-package vertico
|
|
|
|
:init
|
|
|
|
:init
|
|
|
|
(vertico-mode +1)
|
|
|
|
(vertico-mode +1)
|
|
|
@ -346,11 +346,11 @@ Try =M-x consult-theme=
|
|
|
|
;; Optionally enable cycling for `vertico-next' and `vertico-previous'.
|
|
|
|
;; Optionally enable cycling for `vertico-next' and `vertico-previous'.
|
|
|
|
(setq vertico-cycle t)
|
|
|
|
(setq vertico-cycle t)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
#+end_src
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
|
|
*** Orderless
|
|
|
|
*** Orderless
|
|
|
|
Have a look at [[https://github.com/oantolin/orderless][repo]]
|
|
|
|
Have a look at [[https://github.com/oantolin/orderless][repo]]
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
(use-package orderless
|
|
|
|
(use-package orderless
|
|
|
|
:init
|
|
|
|
:init
|
|
|
|
(icomplete-mode)
|
|
|
|
(icomplete-mode)
|
|
|
@ -359,11 +359,11 @@ Try =M-x consult-theme=
|
|
|
|
(completion-category-defaults nil)
|
|
|
|
(completion-category-defaults nil)
|
|
|
|
(completion-category-overrides '((file (styles partial-completion))))
|
|
|
|
(completion-category-overrides '((file (styles partial-completion))))
|
|
|
|
)
|
|
|
|
)
|
|
|
|
#+end_src
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
|
|
*** Marginalia
|
|
|
|
*** Marginalia
|
|
|
|
Check the [[https://github.com/minad/marginalia][doc]]
|
|
|
|
Check the [[https://github.com/minad/marginalia][doc]]
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
(use-package marginalia
|
|
|
|
(use-package marginalia
|
|
|
|
:init
|
|
|
|
:init
|
|
|
|
(marginalia-mode +1)
|
|
|
|
(marginalia-mode +1)
|
|
|
@ -372,7 +372,7 @@ Try =M-x consult-theme=
|
|
|
|
:map minibuffer-local-map
|
|
|
|
:map minibuffer-local-map
|
|
|
|
("M-A" . marginalia-cycle))
|
|
|
|
("M-A" . marginalia-cycle))
|
|
|
|
)
|
|
|
|
)
|
|
|
|
#+end_src
|
|
|
|
#+end_src
|
|
|
|
* Consult and Embark
|
|
|
|
* Consult and Embark
|
|
|
|
Consult is a collection of programs using emacs =completing-read=
|
|
|
|
Consult is a collection of programs using emacs =completing-read=
|
|
|
|
You must read [[https://github.com/minad/consult][the doc]]!
|
|
|
|
You must read [[https://github.com/minad/consult][the doc]]!
|
|
|
@ -428,8 +428,8 @@ Try =M-x consult-theme=
|
|
|
|
|
|
|
|
|
|
|
|
* Editor Enhancements
|
|
|
|
* Editor Enhancements
|
|
|
|
** ace-windows
|
|
|
|
** ace-windows
|
|
|
|
To jump to different windows easily
|
|
|
|
To jump to different windows easily
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
(use-package ace-window
|
|
|
|
(use-package ace-window
|
|
|
|
:ensure t
|
|
|
|
:ensure t
|
|
|
|
:init
|
|
|
|
:init
|
|
|
@ -438,19 +438,19 @@ Try =M-x consult-theme=
|
|
|
|
'(aw-leading-char-face
|
|
|
|
'(aw-leading-char-face
|
|
|
|
((t (:inherit ace-jump-face-foreground :height 3.0)))))
|
|
|
|
((t (:inherit ace-jump-face-foreground :height 3.0)))))
|
|
|
|
)
|
|
|
|
)
|
|
|
|
#+end_src
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
|
|
** ripgrep
|
|
|
|
** ripgrep
|
|
|
|
[[https://github.com/dajva/rg.el][rg repo]]
|
|
|
|
[[https://github.com/dajva/rg.el][rg repo]]
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
(use-package rg
|
|
|
|
(use-package rg
|
|
|
|
:bind
|
|
|
|
:bind
|
|
|
|
("C-c s" . rg-menu))
|
|
|
|
("C-c s" . rg-menu))
|
|
|
|
#+end_src
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
|
|
** Buffer management
|
|
|
|
** Buffer management
|
|
|
|
[[https://github.com/alphapapa/bufler.el][Bufler repo]]
|
|
|
|
[[https://github.com/alphapapa/bufler.el][Bufler repo]]
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
(use-package bufler
|
|
|
|
(use-package bufler
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(defun slv/bufler-one-window (&optional force-refresh)
|
|
|
|
(defun slv/bufler-one-window (&optional force-refresh)
|
|
|
@ -460,17 +460,17 @@ Try =M-x consult-theme=
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
(global-set-key (kbd "C-x C-b") 'slv/bufler-one-window)
|
|
|
|
(global-set-key (kbd "C-x C-b") 'slv/bufler-one-window)
|
|
|
|
#+end_src
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
|
|
** Hydra
|
|
|
|
** Hydra
|
|
|
|
[[https://github.com/abo-abo/hydra][Hydra repo]]
|
|
|
|
[[https://github.com/abo-abo/hydra][Hydra repo]]
|
|
|
|
See [[https://readingworldmagazine.com/emacs/2020-02-27-emacs-hydra-set-up-code/][this]] someday
|
|
|
|
See [[https://readingworldmagazine.com/emacs/2020-02-27-emacs-hydra-set-up-code/][this]] someday
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
(use-package hydra)
|
|
|
|
(use-package hydra)
|
|
|
|
#+end_src
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
|
|
*** Hydra for toggle
|
|
|
|
*** Hydra for toggle
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
(global-set-key
|
|
|
|
(global-set-key
|
|
|
|
(kbd "<f6> t")
|
|
|
|
(kbd "<f6> t")
|
|
|
|
(defhydra hydra-toggle (:color pink)
|
|
|
|
(defhydra hydra-toggle (:color pink)
|
|
|
@ -492,10 +492,10 @@ Try =M-x consult-theme=
|
|
|
|
("w" whitespace-mode nil)
|
|
|
|
("w" whitespace-mode nil)
|
|
|
|
("q" nil "quit"))
|
|
|
|
("q" nil "quit"))
|
|
|
|
)
|
|
|
|
)
|
|
|
|
#+end_src
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
|
|
*** Hydra for navigation
|
|
|
|
*** Hydra for navigation
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
(global-set-key
|
|
|
|
(global-set-key
|
|
|
|
(kbd "<f6> j")
|
|
|
|
(kbd "<f6> j")
|
|
|
|
(defhydra gotoline
|
|
|
|
(defhydra gotoline
|
|
|
@ -516,11 +516,11 @@ Try =M-x consult-theme=
|
|
|
|
("q" nil "quit")
|
|
|
|
("q" nil "quit")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
#+end_src
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
|
|
** avy
|
|
|
|
** avy
|
|
|
|
Quick navigation to words
|
|
|
|
Quick navigation to words
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
(use-package avy
|
|
|
|
(use-package avy
|
|
|
|
:config
|
|
|
|
:config
|
|
|
|
(avy-setup-default)
|
|
|
|
(avy-setup-default)
|
|
|
@ -532,15 +532,15 @@ Quick navigation to words
|
|
|
|
("jl" . avy-goto-line)
|
|
|
|
("jl" . avy-goto-line)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
#+end_src
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
|
|
** iedit
|
|
|
|
** iedit
|
|
|
|
[[https://github.com/victorhge/iedit][iedit]]: Interactive edition of all ocurrences of X
|
|
|
|
[[https://github.com/victorhge/iedit][iedit]]: Interactive edition of all ocurrences of X
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
(use-package iedit
|
|
|
|
(use-package iedit
|
|
|
|
:bind
|
|
|
|
:bind
|
|
|
|
("C-ç" . iedit-mode))
|
|
|
|
("C-ç" . iedit-mode))
|
|
|
|
#+end_src
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
|
|
* Project management with projectile
|
|
|
|
* Project management with projectile
|
|
|
|
- [[https://github.com/bbatsov/projectile][Projectile in github]]
|
|
|
|
- [[https://github.com/bbatsov/projectile][Projectile in github]]
|
|
|
@ -560,7 +560,7 @@ Quick navigation to words
|
|
|
|
- [[https://github.com/magit/magit][magit]] interface to git from emacs (there are a lot of tutos)
|
|
|
|
- [[https://github.com/magit/magit][magit]] interface to git from emacs (there are a lot of tutos)
|
|
|
|
- [[https://github.com/emacsorphanage/git-gutter][git-gutter]] See lines changed in buffer edited
|
|
|
|
- [[https://github.com/emacsorphanage/git-gutter][git-gutter]] See lines changed in buffer edited
|
|
|
|
- [[https://github.com/emacsmirror/git-timemachine][git-time-machine]] Visit previous git versions of edited buffer
|
|
|
|
- [[https://github.com/emacsmirror/git-timemachine][git-time-machine]] Visit previous git versions of edited buffer
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
;; dirty hack to avoid problem when pushing
|
|
|
|
;; dirty hack to avoid problem when pushing
|
|
|
|
(setenv "SSH_AUTH_SOCK" "/run/user/1000/keyring/ssh")
|
|
|
|
(setenv "SSH_AUTH_SOCK" "/run/user/1000/keyring/ssh")
|
|
|
|
|
|
|
|
|
|
|
@ -607,14 +607,14 @@ Quick navigation to words
|
|
|
|
|
|
|
|
|
|
|
|
(use-package git-timemachine
|
|
|
|
(use-package git-timemachine
|
|
|
|
)
|
|
|
|
)
|
|
|
|
#+end_src
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
|
|
* yasnippet
|
|
|
|
* yasnippet
|
|
|
|
- [[https://github.com/joaotavora/yasnippet][yasnippet]] (there are many tutorials)
|
|
|
|
- [[https://github.com/joaotavora/yasnippet][yasnippet]] (there are many tutorials)
|
|
|
|
- [[https://github.com/abo-abo/auto-yasnippet][auto-yasnippet]] (disposable snippets)
|
|
|
|
- [[https://github.com/abo-abo/auto-yasnippet][auto-yasnippet]] (disposable snippets)
|
|
|
|
- [[https://github.com/AndreaCrotti/yasnippet-snippets][yasnippets-snippets]]
|
|
|
|
- [[https://github.com/AndreaCrotti/yasnippet-snippets][yasnippets-snippets]]
|
|
|
|
Place your own snippets on =~/.cache/emacs/etc/yasnippet/snippets=
|
|
|
|
Place your own snippets on =~/.cache/emacs/etc/yasnippet/snippets=
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
(use-package yasnippet
|
|
|
|
(use-package yasnippet
|
|
|
|
:init
|
|
|
|
:init
|
|
|
|
(yas-global-mode 1)
|
|
|
|
(yas-global-mode 1)
|
|
|
@ -623,7 +623,7 @@ Place your own snippets on =~/.cache/emacs/etc/yasnippet/snippets=
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(use-package yasnippet-snippets
|
|
|
|
(use-package yasnippet-snippets
|
|
|
|
)
|
|
|
|
)
|
|
|
|
#+end_src
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
|
|
* company
|
|
|
|
* company
|
|
|
|
Autocompletion with [[https://company-mode.github.io/][company]]
|
|
|
|
Autocompletion with [[https://company-mode.github.io/][company]]
|
|
|
|