|
|
|
@ -9,7 +9,7 @@
|
|
|
|
|
- Check =pdf-tools=
|
|
|
|
|
- Check =org-presentation=
|
|
|
|
|
- Check ESS and project.el problem
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Famous init files
|
|
|
|
|
- [[https://github.com/zamansky/dot-emacs][The Big Zemansky]]
|
|
|
|
|
- [[https://pages.sachachua.com/.emacs.d/Sacha.html][Sacha Chua Emac's configuration]]
|
|
|
|
@ -103,7 +103,7 @@ Some notes about [[https://github.com/jwiegley/use-package][use-package]]
|
|
|
|
|
;; Set encoding
|
|
|
|
|
(prefer-coding-system 'utf-8)
|
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
** Some shortcuts
|
|
|
|
|
Useful shortcuts:
|
|
|
|
|
- Revert buffer (recargar)
|
|
|
|
@ -376,7 +376,7 @@ Some notes about [[https://github.com/jwiegley/use-package][use-package]]
|
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
|
(use-package embark
|
|
|
|
|
:bind
|
|
|
|
|
(("C-." . embark-act) ;; pick some comfortable binding
|
|
|
|
|
(("C-+" . embark-act) ;; pick some comfortable binding
|
|
|
|
|
("C-;" . embark-dwim) ;; good alternative: M-.
|
|
|
|
|
("C-h B" . embark-bindings)) ;; alternative for `describe-bindings'
|
|
|
|
|
|
|
|
|
@ -683,7 +683,7 @@ This function:
|
|
|
|
|
This is only a defun for settings additional details in =org-mode=
|
|
|
|
|
|
|
|
|
|
- Make rendered LaTeX bigger (use =C-c C-x C-l= to swich the view mode)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
|
(defun slv/org-tweaks-setup ()
|
|
|
|
|
(plist-put org-format-latex-options :scale 2) ;; Increase size of LaTeX fragment previews
|
|
|
|
@ -706,7 +706,7 @@ Configuring:
|
|
|
|
|
- Sets =visual-line-mode= on, when using this mode you should avoid using =M-q= (=org-fill-paragraph=). Just use =enter= to finish a paragraph.
|
|
|
|
|
- Call =slv/org-font-setup= function, this function, defined in the section above, sets the fonts for =org-mode=.
|
|
|
|
|
- =:custom= section:
|
|
|
|
|
- Sets a new =org-elipsis= symbol. This is the symbol to be used instead of =...= for folded sections
|
|
|
|
|
- Sets a new =org-elipsis= symbol. This is the symbol to be used instead of =...= for folded sections
|
|
|
|
|
- Sets the org files directory (Dropbox for me)
|
|
|
|
|
- Sets a sound for =org-clock-sound=
|
|
|
|
|
- Sets the default notes file: =i.org=
|
|
|
|
@ -1078,7 +1078,7 @@ command and sqlite3 must be available
|
|
|
|
|
* flycheck
|
|
|
|
|
Syntax checking for programming languages
|
|
|
|
|
|
|
|
|
|
You *must* use [[https://www.flycheck.org/en/latest/][flycheck]] if you use LSP. (Flymake + LSP is hell)
|
|
|
|
|
You *must* use [[https://www.flycheck.org/en/latest/][flycheck]] if you use LSP. (Flymake + LSP is hell)
|
|
|
|
|
|
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
|
(use-package flycheck
|
|
|
|
@ -1089,7 +1089,7 @@ You *must* use [[https://www.flycheck.org/en/latest/][flycheck]] if you use LSP.
|
|
|
|
|
(global-flycheck-mode t)
|
|
|
|
|
)
|
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* LSP
|
|
|
|
|
We are using [[https://emacs-lsp.github.io/lsp-mode/][lsp-mode]] but keep an eye on [[https://github.com/joaotavora/eglot][eglot]] as an alternative.
|
|
|
|
|
|
|
|
|
@ -1230,7 +1230,7 @@ use for your debug templates!
|
|
|
|
|
;; ;; Set up Node debugging
|
|
|
|
|
;; (require 'dap-node)
|
|
|
|
|
;; (dap-node-setup) ;; Automatically installs Node debug adapter if needed
|
|
|
|
|
;;
|
|
|
|
|
;;
|
|
|
|
|
;; ;; Bind `C-c l d` to `dap-hydra` for easy access
|
|
|
|
|
;; ;;(general-define-key
|
|
|
|
|
;; ;; :keymaps 'lsp-mode-map
|
|
|
|
@ -1248,19 +1248,20 @@ References:
|
|
|
|
|
- [[https://gist.github.com/psanford/b5d2689ff1565ec7e46867245e3d2c76][psandford/gopls configuration]]
|
|
|
|
|
#+begin_src emacs-lisp
|
|
|
|
|
(use-package go-mode
|
|
|
|
|
:custom
|
|
|
|
|
;; (lsp-enable-links nil)
|
|
|
|
|
;; (lsp-clients-go-server-args '("--cache-style=always" "--diagnostics-style=onsave" "--format-style=goimports"))
|
|
|
|
|
(lsp-gopls-server-args '("--debug=localhost:6060"))
|
|
|
|
|
(lsp-gopls-staticcheck t)
|
|
|
|
|
;; (lsp-gopls-complete-unimported t)
|
|
|
|
|
:hook
|
|
|
|
|
((go-mode . lsp-deferred)
|
|
|
|
|
(before-save . lsp-format-buffer)
|
|
|
|
|
(before-save . lsp-organize-imports)
|
|
|
|
|
(before-save . gofmt-before-save)
|
|
|
|
|
)
|
|
|
|
|
:after lsp
|
|
|
|
|
:custom
|
|
|
|
|
;; (lsp-enable-links nil)
|
|
|
|
|
;; (lsp-clients-go-server-args '("--cache-style=always" "--diagnostics-style=onsave" "--format-style=goimports"))
|
|
|
|
|
(lsp-gopls-server-args '("--debug=localhost:6060"))
|
|
|
|
|
(lsp-gopls-staticcheck t)
|
|
|
|
|
;; (lsp-gopls-complete-unimported t)
|
|
|
|
|
:hook
|
|
|
|
|
((go-mode . lsp-deferred)
|
|
|
|
|
(before-save . lsp-format-buffer)
|
|
|
|
|
(before-save . lsp-organize-imports)
|
|
|
|
|
(before-save . gofmt-before-save)
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
*** go-snippets
|
|
|
|
@ -1301,7 +1302,7 @@ References:
|
|
|
|
|
(rust-format-on-save t)
|
|
|
|
|
(lsp-rust-server 'rust-analyzer))
|
|
|
|
|
#+end_src
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
** Python
|
|
|
|
|
We do need a Python language server installed in the developing enviroment (=pip install python-lsp-server[all]=)
|
|
|
|
|
- https://www.mattduck.com/lsp-python-getting-started.html
|
|
|
|
@ -1323,7 +1324,7 @@ Not needed if you have the right settings on your active python with =pyenv=
|
|
|
|
|
:hook (python-mode . lsp-deferred)
|
|
|
|
|
;; :custom
|
|
|
|
|
;; (dap-python-debugger 'debugpy)
|
|
|
|
|
;;
|
|
|
|
|
;;
|
|
|
|
|
;;;;; NOTE: Set these if Python 3 is called "python3" on your system!
|
|
|
|
|
;;;; (python-shell-interpreter "python3")
|
|
|
|
|
;;;; (dap-python-executable "python3")
|
|
|
|
|