Browse Source

Update README

main
parent
commit
2521f551f1
  1. 45
      README.org
  2. 7
      config/profile

45
README.org

@ -488,15 +488,6 @@ Connect our custom hooks and configure the input keys, a custom layer for defini
(exwm-enable)) (exwm-enable))
#+end_src #+end_src
*** X11
:PROPERTIES:
:header-args: :tangle ~/.local/source/dotfiles/config/xinitrc
:END:
#+begin_src conf
exec dbus-launch --exit-with-session emacs -mm --debug-init
#+end_src
* Writing * Writing
:PROPERTIES: :PROPERTIES:
:header-args: :tangle ~/.local/source/dotfiles/init.el :results silent :header-args: :tangle ~/.local/source/dotfiles/init.el :results silent
@ -902,12 +893,12 @@ https://www.emacswiki.org/emacs/PythonProgrammingInEmacs
+ Built in mode + Built in mode
#+begin_src emacs-lisp #+begin_src emacs-lisp
;; (use-package python-mode
;; :hook (python-mode . lsp)
;; :config (require 'dap-python)
;; :custom (python-shell-interpreter "python3") ;; Required if "python" is not python 3.
;; (dap-python-executable "python3") ;; Same as above.
;; (dap-python-debugger 'debugpy))
(use-package python-mode
:hook (python-mode . lsp)
:config (require 'dap-python)
:custom (python-shell-interpreter "python3") ;; Required if "python" is not python 3.
(dap-python-executable "python3") ;; Same as above.
(dap-python-debugger 'debugpy))
#+end_src #+end_src
*** Rust *** Rust
@ -924,7 +915,7 @@ rustup default nightly
#+end_src #+end_src
#+begin_src emacs-lisp #+begin_src emacs-lisp
;; (use-package rustic)
(use-package rustic)
#+end_src #+end_src
*** Go *** Go
@ -940,8 +931,8 @@ GO111MODULE=on go get golang.org/x/tools/gopls@latest
#+end_src #+end_src
#+begin_src emacs-lisp #+begin_src emacs-lisp
;; (use-package go-mode
;; :hook (go-mode . lsp))
(use-package go-mode
:hook (go-mode . lsp))
#+end_src #+end_src
Apply some custom behaviour before saving: Apply some custom behaviour before saving:
@ -950,13 +941,13 @@ Apply some custom behaviour before saving:
+ Organize imports + Organize imports
#+begin_src emacs-lisp #+begin_src emacs-lisp
;; (defun dotfiles/go-hook ()
;; (add-hook 'before-save-hook #'lsp-format-buffer t t)
;; (add-hook 'before-save-hook #'lsp-organize-imports t t))
(defun dotfiles/go-hook ()
(add-hook 'before-save-hook #'lsp-format-buffer t t)
(add-hook 'before-save-hook #'lsp-organize-imports t t))
#+end_src #+end_src
#+begin_src emacs-lisp #+begin_src emacs-lisp
;; (add-hook 'go-mode-hook #'dotfiles/go-hook)
(add-hook 'go-mode-hook #'dotfiles/go-hook)
#+end_src #+end_src
* Interface * Interface
:PROPERTIES: :PROPERTIES:
@ -1062,6 +1053,16 @@ Load a theme with =SPC t t=.
"tt" '(load-theme t t :which-key "Theme")) "tt" '(load-theme t t :which-key "Theme"))
#+end_src #+end_src
** Ligatures
Enable font ligatures via [[https://github.com/jming422/fira-code-mode][fira-code-mode]], perform this action *only* when ~Fira Code~ is set as the current font.
#+begin_src emacs-lisp
;; (use-package fira-code-mode
;; :config
;; (global-fira-code-mode))
#+end_src
** Dashboard ** Dashboard
Present a dashboard when first launching Emacs. Present a dashboard when first launching Emacs.

7
config/profile

@ -13,8 +13,11 @@ if [ -d "$HOME/.local/bin" ]; then
PATH="$HOME/.local/bin:$PATH" PATH="$HOME/.local/bin:$PATH"
fi fi
if [ -d "$HOME/go/bin" ]; then
PATH="$HOME/go/bin:$PATH"
GOPATH="$HOME/.go/"
export GOPATH
if [ -d "$GOPATH/bin" ]; then
PATH="$GOPATH/bin:$PATH"
fi fi
if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then

Loading…
Cancel
Save