Fix some indent

main
Sergio Alvariño 2 years ago
parent 60ce37b80a
commit 0cb1beeaa7

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

Loading…
Cancel
Save