chore: remove .local and update with current settings

This commit is contained in:
Alexandre Cavalheiro S. Tiago da Silva 2022-05-20 18:42:37 -03:00
parent 58751c926b
commit 44ef35842c
No known key found for this signature in database
GPG key ID: 9DB0EDFAA7025A2A
9167 changed files with 54639 additions and 55723 deletions

View file

@ -3,10 +3,9 @@
;; Place your private configuration here! Remember, you do not need to run 'doom
;; sync' after modifying this file!
;; Some functionality uses this to identify you, e.g. GPG configuration, email
;; clients, file templates and snippets.
(setq user-full-name "Alexandre Cavalheiro S. Tiago Da Silva"
(setq user-full-name "Alexandre Cavalheiro S. Tiago da Silva"
user-mail-address "alexandre.cssilva@gmail.com")
;; Doom exposes five (optional) variables for controlling fonts in Doom. Here
@ -21,7 +20,10 @@
;; font string. You generally only need these two:
;; (setq doom-font (font-spec :family "monospace" :size 12 :weight 'semi-light)
;; doom-variable-pitch-font (font-spec :family "sans" :size 13))
(setq doom-font (font-spec :family "Fira Code NF" :size 12 :weight 'regular))
(setq doom-font (font-spec :family "FantasqueSansMono NF" :size 13 :weight 'regular))
;;(setq doom-font (font-spec :family "Hasklig" :size 12 :weight 'regular))
(setq doom-unicode-font doom-font) ; extend glyphs
;; There are two ways to load a theme. Both assume the theme is installed and
@ -31,11 +33,12 @@
;; If you use `org' and don't want your org files in the default location below,
;; change `org-directory'. It must be set before org loads!
(setq org-directory "~/Desktop/hydractify/GitHub")
(setq org-directory "~/Documents/notes"
org-agenda-files (doom-files-in `(,org-directory, "~/Documents/zettlekasten/daily") :type 'files :match "\\.org\\'"))
;; This determines the style of line numbers in effect. If set to `nil', line
;; numbers are disabled. For relative line numbers, set this to `relative'.
(setq display-line-numbers-type t)
(setq display-line-numbers-type 'relative)
;; Here are some additional functions/macros that could help you configure Doom:
@ -55,6 +58,83 @@
;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
;; they are implemented.
;; Set the tab width to 4 and enable tab indentation
(setq tab-width 4)
(setq indent-tabs-mode t)
;; Set the tab width to 2 and enable tab indentation
(setq tab-width 2)
;; Make sure hl-line-mode doesn't overrides rainbow-mode
(add-hook! 'rainbow-mode-hook
(hl-line-mode (if rainbow-mode -1 +1)))
;; Show gravatars on commits
(setq magit-revision-show-gravatars '("^Author: " . "^Commit: "))
;; Enable fullscreen when activating zen mode
(setq writeroom-fullscreen-effect t)
;; Configure elcord
(setq elcord-client-id "794300845000228897"
elcord-mode-text-alist '(
(cpp-mode . "C++")
(emacs-lisp-mode . "Elisp")
(gdscript-mode . "GDScript")
(js-mode . ":(")
(json-mode . "D:")
(lua-mode . "PLEASE")
(org-mode . "c:")
(sh-mode . ":c")
(typescript-mode . ":)")
(magit-mode . "Git magic")
(elixir-mode . "Elixir")
(nim-mode "Nim")
)
elcord-mode-icon-alist '(
(cpp-mode . "cpp_mode")
(emacs-lisp-mode . "elisp_mode")
(gdscript-mode . "gdscript_mode")
(js-mode . "js_mode")
(json-mode . "json_mode")
(lua-mode . "lua_mode")
(org-mode . "org_mode")
(sh-mode . "sh_mode")
(typescript-mode . "typescript_mode")
(magit-mode . "magit_mode")
(elixir-mode . "elixir_mode")
(nim-mode . "nim_mode")
)
elcord-editor-icon "elmo_fire"
elcord--editor-name "Coding is overrated."
)
;; Configure initial major mode for the scratch buffer
(setq initial-major-mode 'org-mode)
;; Configure orm-roam
(setq org-roam-v2-ack t) ; flag that it has been successfully migrated
(setq org-roam-directory "~/Documents/zettlekasten")
(map! (:leader :desc "Opens a daily note through the calendar" :n "nrdF" #'org-roam-dailies-find-date))
(setq org-roam-dailies-capture-templates
'(("d" "default" entry
"* %?"
:target (file+head "%<%Y-%m-%d>.org"
"#+title: %<%Y-%m-%d>\n#+filetags: :daily:\n\n* Morning Journal\n** What are you grateful for?\n** What do you want today's highlight to be?\n** What's on your mind?\n* Tasks\n* Input\n* Output\n* Evening Reflection\n** How are you feeling today?\n** What could you have done better?\n** Amazing things that happened\n** What did you learn today?"))))
;; Function to add directories done by hlissner (Henrik) https://github.com/hlissner/doom-emacs/issues/5305#issuecomment-923996238
(defun doom/add-directory-as-project (dir)
"Register an arbitrary directory as a project.
If DIR is not a valid project, a .project file will be created within it. This
command will throw an error if a parent of DIR is a valid project (which would
mask DIR)."
(interactive "D")
(let ((short-dir (abbreviate-file-name dir))
(proj-dir (doom-project-root dir)))
(unless (and proj-dir (file-equal-p proj-dir dir))
(with-temp-file (doom-path dir ".project")))
(setq proj-dir (doom-project-root dir))
(unless (and proj-dir (file-equal-p proj-dir dir))
(user-error "Can't add %S as a project, because %S is already a project"
short-dir (abbreviate-file-name proj-dir)))
(message "%S was not a project; adding .project file to it" short-dir)
(projectile-add-known-project dir)))
;; Setup elixir-ls
(setq lsp-clients-elixir-server-executable '("~/.local/share/elixir-ls/release/language_server.sh"))

View file

@ -23,7 +23,8 @@
company ; the ultimate code completion backend
;;helm ; the *other* search engine for love and life
;;ido ; the other *other* search engine...
ivy ; a search engine for love and life
;;(ivy +fuzzy) ; a search engine for love and life
(vertico +icons) ; the search engine of the future
:ui
;;deft ; notational velocity for Emacs
@ -31,25 +32,26 @@
doom-dashboard ; a nifty splash screen for Emacs
doom-quit ; DOOM quit-message prompts when you quit Emacs
(emoji +unicode) ; 🙂
;;fill-column ; a `fill-column' indicator
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
;;hydra
indent-guides ; highlighted indent columns
;;(ligatures +fira) ; ligatures and symbols to make your code pretty again
ligatures ; ligatures and symbols to make your code pretty again
;;minimap ; show a map of the code on the side
modeline ; snazzy, Atom-inspired modeline, plus API
;;nav-flash ; blink cursor line after big motions
;;neotree ; a project drawer, like NERDTree for vim
ophints ; highlight the region an operation acts on
(popup +defaults) ; tame sudden yet inevitable temporary windows
(popup ; tame sudden yet inevitable temporary windows
+all
+defaults)
;;tabs ; a tab bar for Emacs
treemacs ; a project drawer, like neotree but cooler
(treemacs +lsp) ; a project drawer, like neotree but cooler
unicode ; extended unicode support for various languages
vc-gutter ; vcs diff in the fringe
vi-tilde-fringe ; fringe tildes to mark beyond EOB
;;window-select ; visually switch windows
workspaces ; tab emulation, persistence & separate workspaces
;;zen ; distraction-free coding or writing
zen ; distraction-free coding or writing
:editor
(evil +everywhere); come to the dark side, we have cookies
@ -66,8 +68,8 @@
;;word-wrap ; soft wrapping with language-aware indent
:emacs
dired ; making dired pretty [functional]
electric ; smarter, keyword-based electric-indent
(dired +ranger) ; making dired pretty [functional]
(electric +icons) ; smarter, keyword-based electric-indent
;;ibuffer ; interactive buffer management
undo ; persistent, smarter undo for your inevitable mistakes
vc ; version-control and Emacs, sitting in a tree
@ -80,11 +82,13 @@
:checkers
syntax ; tasing you for every semicolon you forget
(spell +flyspell) ; tasing you for misspelling mispelling
(spell
+flyspell) ; FIXME tasing you for misspelling mispelling
;;grammar ; tasing grammar mistake every you make
:tools
;;ansible
;;biblio ; Writes a PhD for you (citation needed)
debugger ; FIXME stepping through code, to help you add bugs
;;direnv
;;docker
@ -111,12 +115,13 @@
:lang
;;agda ; types of types of types of types...
;;beancount ; mind the GAAP
(cc +lsp) ; C/C++/Obj-C madness
;;clojure ; java with a lisp
;;common-lisp ; if you've seen one lisp, you've seen them all
;;coq ; proofs-as-programs
;;crystal ; ruby at the speed of c
;;csharp ; unity, .NET, and mono shenanigans
csharp ; unity, .NET, and mono shenanigans
;;data ; config/data formats
;;(dart +flutter) ; paint ui and not much else
(elixir +lsp) ; erlang done right
@ -124,6 +129,8 @@
emacs-lisp ; drown in parentheses
;;erlang ; an elegant language for a more civilized age
;;ess ; emacs speaks statistics
;;factor
;;fortran ; in FORTRAN, GOD is REAL (unless declared INTEGER)
;;faust ; dsp, but you get to keep your soul
;;fsharp ; ML stands for Microsoft's Language
;;fstar ; (dependent) types and (monadic) effects and Z3
@ -137,17 +144,23 @@
(javascript +lsp) ; all(hope(abandon(ye(who(enter(here))))))
;;julia ; a better, faster MATLAB
;;kotlin ; a better, slicker Java(Script)
;;latex ; writing papers in Emacs has never been so fun
(latex ; writing papers in Emacs has never been so fun
+lsp
+cdlatex) ; math snippets
;;lean
;;factor
;;ledger ; an accounting system in Emacs
(lua +lsp) ; one-based indices? one-based indices
ledger ; an accounting system in Emacs
;;(lua +lsp) ; one-based indices? one-based indices
markdown ; writing docs for people to ignore
;;nim ; python + lisp at the speed of c
nim ; python + lisp at the speed of c
;;nix ; I hereby declare "nix geht mehr!"
;;ocaml ; an objective camel
org ; organize your plain life in plain text
(php +lsp) ; perl's insecure younger brother
(org ; organize your plain life in plain text
+pretty ; adds flair to org mode
+gnuplot ; graph magic
+pandoc
+roam2) ; Enable org-roam v2 integration
;;(php +lsp) ; perl's insecure younger brother
;;plantuml ; diagrams for confusing people more
;;purescript ; javascript, but functional
;;python ; beautiful is better than ugly
@ -165,8 +178,9 @@
;;solidity ; do you need a blockchain? No.
;;swift ; who asked for emoji variables?
;;terra ; Earth and Moon in alignment for performance.
web ; the tubes
(web +lsp) ; the tubes
(yaml +lsp) ; JSON, but readable
;;zig ; C, but simpler
:email
;;(mu4e +gmail)

View file

@ -40,8 +40,6 @@
;; Use `:pin' to specify a particular commit to install.
;(package! builtin-package :pin "1a2b3c4d5e")
(package! typescript-mode)
;; Doom's packages are pinned to a specific commit and updated from release to
;; release. The `unpin!' macro allows you to unpin single packages...
;(unpin! pinned-package)
@ -49,3 +47,23 @@
;(unpin! pinned-package another-pinned-package)
;; ...Or *all* packages (NOT RECOMMENDED; will likely break things)
;(unpin! t)
;; Install and enable Discord RPC
(package! elcord)
;; Install and enable Org Roam
(package! org-roam
:recipe (:host github :repo "org-roam/org-roam"
:files (:defaults "extensions/*")))
;; Install and enable vue-mode
(package! vue-mode)
;; Install and enable powershell.el
(package! powershell)
;; Install and enable graphviz-dot-mode
(package! graphviz-dot-mode)
;; Install org-roam
(package! org-roam)

View file

@ -0,0 +1,13 @@
# -*- mode: snippet -*-
# name: cult_bounty_message
# key: cultBountyMessage
# --
« **$1** »
║ **Requirements**
║ $2
║ **\$3 Reward \$4**
║ <@574657462603612160>;

View file

@ -0,0 +1,11 @@
# -*- mode: snippet -*-
# name: cult_event
# key: cultEvent
# --
* TODO $1 :cult_event:
SCHEDULED: <`(current-time-string)`>
- HOST: $2
- HOW LONG: $3
- LINK: $4
$5

View file

@ -0,0 +1,26 @@
#+title: %<%Y-%m-%d>
#+filetags: :daily:
* Morning Journal
** What are you grateful for?
** What do you want the today's highlight to be?
** Daily affirmations
*** What's on your mind?
* Tasks
* Input
* Output
* Evening Reflection
** How are you feeling today?
** What could you have done better?
** Amazing things that happend
** What did you learn today?