1
1
#+TITLE: Pip Boy Emacs Configurations
2
2
3
- * Table of Contents :TOC_2 :
3
+ * Table of Contents :TOC_3 :
4
4
- [[#preamble][Preamble]]
5
5
- [[#emacs-lisp-scripts][Emacs Lisp Scripts]]
6
6
- [[#personal-information][Personal Information]]
7
7
- [[#os][OS]]
8
8
- [[#mac-os][Mac OS]]
9
+ - [[#set----keys][Set ⌘ ⌥ ⌃ Keys]]
9
10
- [[#ui][UI]]
10
11
- [[#splash-image][Splash Image]]
11
12
- [[#main-theme][Main Theme]]
12
13
- [[#mouse-cursor-color][Mouse Cursor Color]]
13
14
- [[#evil-cursor-state-colors][Evil Cursor State Colors]]
14
15
- [[#menue-bar][Menue Bar]]
15
16
- [[#modeline][Modeline]]
17
+ - [[#configure-doom-modeline][Configure doom-modeline]]
18
+ - [[#show-battery-usage][Show battery usage]]
19
+ - [[#disable-buffer-size][Disable buffer size]]
16
20
- [[#treemacs][Treemacs]]
17
21
- [[#editor][Editor]]
22
+ - [[#line-numbers][Line Numbers]]
23
+ - [[#fill-column][fill-column]]
18
24
- [[#font][Font]]
19
25
- [[#terminal][Terminal]]
20
26
- [[#tmux][tmux]]
27
+ - [[#key-bindings][Key Bindings]]
21
28
- [[#vterm][vterm]]
22
29
- [[#tramp][Tramp]]
23
30
- [[#spell-checker][Spell Checker]]
30
37
- [[#key-maps][Key Maps]]
31
38
- [[#directory-structure][Directory Structure]]
32
39
- [[#get-things-done][Get Things Done]]
40
+ - [[#files][Files]]
41
+ - [[#state-keywords][State Keywords]]
42
+ - [[#tags][Tags]]
43
+ - [[#org-agenda][org-agenda]]
44
+ - [[#org-refile][org-refile]]
45
+ - [[#org-capture][org-capture]]
46
+ - [[#org-archive][org archive]]
33
47
- [[#zettelkasten][Zettelkasten]]
48
+ - [[#org-roam][org-roam]]
49
+ - [[#org-ref][org-ref]]
50
+ - [[#helm-bibtex--ivy-bibtex][helm-bibtex & ivy-bibtex]]
51
+ - [[#org-noter][org-noter]]
52
+ - [[#org-roam-bibtex][org-roam-bibtex]]
53
+ - [[#deft][deft]]
34
54
- [[#enable-minor-modes][Enable minor modes]]
55
+ - [[#cv--resume][CV & Resume]]
56
+ - [[#org-export-functions][org-export functions]]
57
+ - [[#keybindings][Keybindings]]
58
+ - [[#export-backends][Export Backends]]
35
59
- [[#org-export][org-export]]
60
+ - [[#latex][LaTex]]
36
61
- [[#org-babel][org-babel]]
62
+ - [[#prolog][Prolog]]
37
63
- [[#org-drill][org-drill]]
38
- - [[#latex][LaTeX]]
64
+ - [[#latex-1 ][LaTeX]]
39
65
- [[#flycheck][Flycheck]]
40
66
- [[#languages][Languages]]
41
67
- [[#lsp][LSP]]
68
+ - [[#configuration][Configuration]]
69
+ - [[#autocompletion][Autocompletion]]
70
+ - [[#lsp-ui-configurations][LSP UI Configurations]]
42
71
- [[#dap][DAP]]
43
- - [[#python][Python]]
44
- - [[#prolog][Prolog]]
72
+ - [[#ui-1][UI]]
73
+ - [[#python][Python]]
74
+ - [[#keybindings-1][Keybindings]]
75
+ - [[#python-1][Python]]
76
+ - [[#editor-1][Editor]]
77
+ - [[#debugger][Debugger]]
78
+ - [[#repl][REPL]]
79
+ - [[#poetry][Poetry]]
80
+ - [[#pyright-language-server][Pyright Language Server]]
81
+ - [[#sphinx-doc][~sphinx-doc~]]
82
+ - [[#prolog-1][Prolog]]
83
+ - [[#ediprolog][~ediprolog~]]
45
84
- [[#scala][Scala]]
85
+ - [[#ai--assistant][AI & Assistant]]
46
86
47
87
* Preamble
48
88
** Emacs Lisp Scripts
@@ -277,10 +317,10 @@ paths include the followings:
277
317
+ Bibliography files generated by Zotero.
278
318
+ GTD workflow files.
279
319
#+BEGIN_SRC emacs-lisp
280
- (setq! pipboy/org-notes (expand-file-name "~/Dropbox/Apps/org- roam/")
320
+ (setq! pipboy/org-notes (expand-file-name "~/w/ roam/")
281
321
pipboy/bibtex-files (directory-files "~/Dropbox/Apps/bibliography/bib/" 'full ".bib")
282
322
pipboy/pdf-directory (expand-file-name "~/Dropbox/Apps/bibliography/pdf/")
283
- pipboy/gtd-directory (expand-file-name "~/Dropbox/Apps /beorg"))
323
+ pipboy/gtd-directory (expand-file-name "~/w/ /beorg"))
284
324
#+END_SRC
285
325
** Get Things Done
286
326
*** Files
@@ -666,6 +706,33 @@ I use deft to search the notes I take using org roam.
666
706
#+begin_src emacs-lisp
667
707
(add-hook! 'org-mode-hook #'auto-fill-mode)
668
708
#+end_src
709
+ ** CV & Resume
710
+ *** org-export functions
711
+ #+begin_src emacs-lisp
712
+ (defun pipboy/org-export-altacv ()
713
+ "export buffer to altacv resume"
714
+ (interactive)
715
+ (let ((outfile (org-export-output-file-name ".tex")))
716
+ (org-export-to-file 'altacv outfile)
717
+ (org-latex-compile outfile)))
718
+ #+end_src
719
+ *** Keybindings
720
+ #+begin_src emacs-lisp
721
+ (map! :leader
722
+ (:prefix-map ("a" . "applications")
723
+ (:prefix ("o" . "org")
724
+ :desc "org export altacv resume" "r" #'pipboy/org-export-altacv)))
725
+ #+end_src
726
+
727
+ #+RESULTS:
728
+ : pipboy/org-export-altacv
729
+
730
+ *** Export Backends
731
+ #+begin_src emacs-lisp
732
+ (use-package! ox-moderncv :after org)
733
+ (use-package! ox-altacv :after org)
734
+ #+end_src
735
+
669
736
** org-export
670
737
*** LaTex
671
738
+ Enable bibtex compilation
@@ -684,7 +751,45 @@ I use deft to search the notes I take using org roam.
684
751
#+END_SRC
685
752
686
753
+ [ ] Set LaTex export engine to be XeLaTex
687
-
754
+ #+begin_src emacs-lisp
755
+ (setq org-latex-packages-alist 'nil)
756
+ (setq org-latex-default-packages-alist
757
+ '(("AUTO" "inputenc" t ("pdflatex"))
758
+ ("T1" "fontenc" t ("pdflatex"))
759
+ ("" "graphicx" t)
760
+ ("" "grffile" t)
761
+ ("" "minted" t)
762
+ ("" "longtable" nil)
763
+ ("" "wrapfig" nil)
764
+ ("" "rotating" nil)
765
+ ("normalem" "ulem" t)
766
+ ("" "amsmath" t)
767
+ ("" "amssymb" t)
768
+ ("" "unicode-math" t)
769
+ ("" "mathtools" t)
770
+ ("" "textcomp" t)
771
+ ("" "capt-of" nil)
772
+ ("" "hyperref" nil)))
773
+
774
+ ;; (plist-put org-format-latex-options :scale 2.2)
775
+ ;; (add-to-list 'org-preview-latex-process-alist '(dvixelatex :programs
776
+ ;; ("xetex" "convert")
777
+ ;; :description "pdf > png" :message "you need to install the programs: xetex and imagemagick." :image-input-type "pdf" :image-output-type "png" :image-size-adjust
778
+ ;; (1.0 . 1.0)
779
+ ;; :latex-compiler
780
+ ;; ("xelatex -no-pdf -interaction nonstopmode -output-directory %o %f")
781
+ ;; :image-converter
782
+ ;; ("dvisvgm %f -n -b min -c %S -o %O")))
783
+
784
+ ;; (add-to-list 'org-preview-latex-process-alist '(imagexetex :programs
785
+ ;; ("xelatex" "convert")
786
+ ;; :description "pdf > png" :message "you need to install the programs: xelatex and imagemagick." :image-input-type "pdf" :image-output-type "png" :image-size-adjust
787
+ ;; (1.0 . 1.0)
788
+ ;; :latex-compiler
789
+ ;; ("xelatex -interaction nonstopmode -output-directory %o %f")
790
+ ;; :image-converter
791
+ ;; ("convert -density %D -trim -antialias %f -quality 100 %O")))
792
+ #+end_src
688
793
** org-babel
689
794
*** Prolog
690
795
#+BEGIN_SRC emacs-lisp
@@ -864,3 +969,7 @@ It's recommended to use =debugpy= over =ptvsd=.
864
969
(setq backup-directory-alist `((".*" . ,temporary-file-directory))
865
970
auto-save-file-name-transforms `((".*" ,temporary-file-directory t)))
866
971
#+END_SRC
972
+ * AI & Assistant
973
+ #+begin_src emacs-lisp
974
+ (use-package! gptel)
975
+ #+end_src
0 commit comments