Compare commits

..

3 Commits

Author SHA1 Message Date
J S
83eddd3c9f
feat[anki,html,weblorg]: Added weblorg package
Adjusted html export settings to allow correct render of mathematics.
Added snippet for anki-cloze
2023-12-14 23:33:15 -05:00
J S
bdfebf8ce7
feat[anki]: Added inline-anki as an option 2023-12-14 23:32:41 -05:00
J S
a0bcaf0092
Added snow and fireplace modules for some fun.
Re-added standard C-a and C-x vim keybinds, as EViL increment/decrement
does not support.

Added inline-anki package for better anki management.
Added cookies file
2023-12-09 18:53:31 -05:00
3 changed files with 65 additions and 27 deletions

View File

@ -25,6 +25,7 @@ Some basic settings for Emacs
(setq user-full-name "Judah Sotomayor"
user-mail-address "")
#+end_src
#+begin_src emacs-lisp :tangle "packages.el"
(package! noCtrlC
:recipe (:host nil :type git :repo "https://git.freedomland.xyz/judahsotomayor/noctrlc"))
@ -56,12 +57,16 @@ Set a sweet splash image
I want a non-ESC way to get back to normal mode:
#+begin_src emacs-lisp
(map! :desc "Switch to normal mode" :i "C-c" #'evil-normal-state)
(after! org-mode (map! :desc "Delete previous character in insert mode" :i "C-h" #'evil-delete-backward-char))
(map! :desc "Increment number below or after cursor" :n "C-a" #'evil-numbers/inc-at-pt)
(map! :desc "Decrement number below or after cursor" :n "C-x" #'evil-numbers/dec-at-pt)
#+end_src
* Terminal setup
I like to just use bash:
#+begin_src emacs-lisp
(defun bash ()
(defun bash nil
"Lauch term with /bin/bash"
(interactive)
(term "/bin/bash"))
(map!
@ -400,21 +405,6 @@ It causes a lot of duplication!
#+end_src
#+end_comment
Turn it off with this snippet.
** Org-drill
Set some good keybinds for quick access:
#+begin_src emacs-lisp
(use-package! org-drill
:defer nil
)
(map! :leader
:desc "Start org-drill"
"d d" #'org-drill-directory)
(map! :leader
:desc "Start org-drill in cram mode"
"d c" #'org-drill-cram)
#+end_src
** ob-lilypond
*** package
#+begin_src emacs-lisp :tangle "packages.el"
@ -453,6 +443,18 @@ Edna allows better dependency handling for todos and the like.
#+begin_src emacs-lisp :tangle packages.el
(package! anki-editor)
#+end_src
*** Configuring inline-anki
#+begin_src emacs-lisp :tangle packages.el
(package! asyncloop)
(package! inline-aki
:recipe (:host github :repo "meedstrom/inline-anki"))
#+end_src
#+begin_src emacs-lisp
(setq inline-anki-note-type "Katex and Markdown Cloze")
(setq inline-anki-use-tags t)
#+end_src
** calfw Calendar View
#+begin_src emacs-lisp :tangle "packages.el"
(package! calfw
@ -496,6 +498,14 @@ In order for editorconfig to do its thing, indentation by the lsp must be disabl
(setq org-hugo-base-dir (concat org-directory (file-name-as-directory "website")))
(setq org-hugo-default-section-directory "posts")
#+end_src
** Weblorg Alternative
#+begin_src emacs-lisp :tangle "packages.el"
(package! weblorg)
#+end_src
#+begin_src emacs-lisp
(use-package! weblorg)
#+end_src
* Crafting a Writing Environment
For writing I like to automate as much as possible.
@ -535,9 +545,7 @@ $x + 1 = 3$
: luamagick
#+begin_src emacs-lisp
(setq-default org-html-with-latex `dvisvgm)
(setq-default org-html-with-latex 'verbatim)
(unless (boundp 'org-latex-classes)
(setq org-latex-classes nil))
@ -1040,6 +1048,7 @@ This template is supposed to be the standard.
"\\documentclass[]{mcdowellcv}
\\usepackage{amsmath}
\\usepackage[]{multicol}
\\usepackage[hidelinks]{hyperref}
[NO-DEFAULT-PACKAGES]
[NO-PACKAGES]"
("\\section{%s}" . "\\section*{%s}")
@ -1099,9 +1108,9 @@ We need to bring in the correct SSH agent values, so that Emacs is aware of wher
:config
(setq org-roam-file-extensions '("org" "md")) ; enable Org-roam for a markdown extension
(setq md-roam-file-extension "md") ; default "md". Specify an extension such as "markdown"
(md-roam-mode 1)
(setq md-roam-file-extension-single "md")
(setq md-roam-use-org-extract-ref nil)
(org-roam-db-autosync-mode 1))
#+end_src
** COMMENT Capture template for documentation
@ -1119,11 +1128,29 @@ We need to bring in the correct SSH agent values, so that Emacs is aware of wher
(use-package! spray
:commands spray-mode)
#+end_src
** Snow
#+begin_src emacs-lisp :tangle "packages.el"
(package! snow)
(package! fireplace)
#+end_src
#+begin_src emacs-lisp
(use-package! snow)
(use-package! fireplace)
#+end_src
#+begin_src emacs-lisp
(add-to-list 'org-tags-exclude-from-inheritance "hastodos")
(add-to-list 'org-tags-exclude-from-inheritance "ignore")
#+end_src
** Cookies
#+begin_src emacs-lisp
(setq fortune-file "/home/user/.config/doom/cookies.txt")
(setq cookie-file "/home/user/.config/doom/cookies.txt")
#+end_src
#+RESULTS:
: /home/user/.config/doom/cookies.txt
* Graphics in org-mode
@ -1249,6 +1276,10 @@ SVGBob is an ASCII art renderer. It can do all kinds of nifty things with just a
* Archiving
#+begin_src emacs-lisp
(setq org-archive-location "/home/user/org/archive.org::")
#+end_src
* Init.el
I like to have all my config in one place.
@ -1350,7 +1381,7 @@ I like to have all my config in one place.
(eval +overlay) ; run code, run (also, repls)
;;gist ; interacting with github gists
(lookup +dictionary +offline) ; navigate your code and its documentation
lsp ; M-x vscode
(lsp +eglot) ; M-x vscode
magit ; a git porcelain for Emacs
;;make ; run make tasks from Emacs
;;pass ; password manager for nerds

BIN
cookies.txt Normal file

Binary file not shown.

7
snippets/org-mode/{{c Normal file
View File

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: Anki cloze
# uuid:2023-12-10t232420
# key: cz
# condition: t
# --
{{c$1::$0::$.=.$}}