Skip to content

Commit 0f5580f

Browse files
committed
Updates
1 parent 9e557f5 commit 0f5580f

File tree

3 files changed

+122
-18
lines changed

3 files changed

+122
-18
lines changed

README.org

+2-9
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ branch.
2626

2727
In fish, you can write the following and forget about it.
2828
#+BEGIN_SRC fish
29-
set -U fish_user_paths ~/.emacs.d/bin $fish_user_paths
29+
fish_add_path ~/.config/emacs/bin
3030
#+END_SRC
3131
Otherwise, add it to your bash profile.
3232
4. Make sure you run =doom sync= every time the configurations changed. You can
@@ -37,14 +37,7 @@ branch.
3737
This is a work-in-progress installation script.
3838
#+BEGIN_SRC bash
3939
# Install Doom Emacs by hlissner
40-
git clone https://github.com/hlissner/doom-emacs ~/.emacs.d
41-
42-
# Install the package manager stuff
43-
# If your ISP or proxy doesn't allow you to install from
44-
# raw.githubusercontent.com, then you'll have to install straight (our package
45-
# manager) manually:
46-
mkdir -p ~/.emacs.d/.local/straight/repos
47-
git clone -b develop https://github.com/raxod502/straight.el ~/.emacs.d/.local/straight/repos/straight.el
40+
git clone https://github.com/hlissner/doom-emacs ~/.config/emacs
4841

4942
# Install these configurations
5043
git clone https://github.com/ashkan-leo/.doom.git ~/.config/doom/

config.org

+116-7
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,30 @@
11
#+TITLE: Pip Boy Emacs Configurations
22

3-
* Table of Contents :TOC_2:
3+
* Table of Contents :TOC_3:
44
- [[#preamble][Preamble]]
55
- [[#emacs-lisp-scripts][Emacs Lisp Scripts]]
66
- [[#personal-information][Personal Information]]
77
- [[#os][OS]]
88
- [[#mac-os][Mac OS]]
9+
- [[#set----keys][Set ⌘ ⌥ ⌃ Keys]]
910
- [[#ui][UI]]
1011
- [[#splash-image][Splash Image]]
1112
- [[#main-theme][Main Theme]]
1213
- [[#mouse-cursor-color][Mouse Cursor Color]]
1314
- [[#evil-cursor-state-colors][Evil Cursor State Colors]]
1415
- [[#menue-bar][Menue Bar]]
1516
- [[#modeline][Modeline]]
17+
- [[#configure-doom-modeline][Configure doom-modeline]]
18+
- [[#show-battery-usage][Show battery usage]]
19+
- [[#disable-buffer-size][Disable buffer size]]
1620
- [[#treemacs][Treemacs]]
1721
- [[#editor][Editor]]
22+
- [[#line-numbers][Line Numbers]]
23+
- [[#fill-column][fill-column]]
1824
- [[#font][Font]]
1925
- [[#terminal][Terminal]]
2026
- [[#tmux][tmux]]
27+
- [[#key-bindings][Key Bindings]]
2128
- [[#vterm][vterm]]
2229
- [[#tramp][Tramp]]
2330
- [[#spell-checker][Spell Checker]]
@@ -30,19 +37,52 @@
3037
- [[#key-maps][Key Maps]]
3138
- [[#directory-structure][Directory Structure]]
3239
- [[#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]]
3347
- [[#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]]
3454
- [[#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]]
3559
- [[#org-export][org-export]]
60+
- [[#latex][LaTex]]
3661
- [[#org-babel][org-babel]]
62+
- [[#prolog][Prolog]]
3763
- [[#org-drill][org-drill]]
38-
- [[#latex][LaTeX]]
64+
- [[#latex-1][LaTeX]]
3965
- [[#flycheck][Flycheck]]
4066
- [[#languages][Languages]]
4167
- [[#lsp][LSP]]
68+
- [[#configuration][Configuration]]
69+
- [[#autocompletion][Autocompletion]]
70+
- [[#lsp-ui-configurations][LSP UI Configurations]]
4271
- [[#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~]]
4584
- [[#scala][Scala]]
85+
- [[#ai--assistant][AI & Assistant]]
4686

4787
* Preamble
4888
** Emacs Lisp Scripts
@@ -277,10 +317,10 @@ paths include the followings:
277317
+ Bibliography files generated by Zotero.
278318
+ GTD workflow files.
279319
#+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/")
281321
pipboy/bibtex-files (directory-files "~/Dropbox/Apps/bibliography/bib/" 'full ".bib")
282322
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"))
284324
#+END_SRC
285325
** Get Things Done
286326
*** Files
@@ -666,6 +706,33 @@ I use deft to search the notes I take using org roam.
666706
#+begin_src emacs-lisp
667707
(add-hook! 'org-mode-hook #'auto-fill-mode)
668708
#+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+
669736
** org-export
670737
*** LaTex
671738
+ Enable bibtex compilation
@@ -684,7 +751,45 @@ I use deft to search the notes I take using org roam.
684751
#+END_SRC
685752

686753
+ [ ] 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
688793
** org-babel
689794
*** Prolog
690795
#+BEGIN_SRC emacs-lisp
@@ -864,3 +969,7 @@ It's recommended to use =debugpy= over =ptvsd=.
864969
(setq backup-directory-alist `((".*" . ,temporary-file-directory))
865970
auto-save-file-name-transforms `((".*" ,temporary-file-directory t)))
866971
#+END_SRC
972+
* AI & Assistant
973+
#+begin_src emacs-lisp
974+
(use-package! gptel)
975+
#+end_src

packages.el

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
(package! org-fragtog)
1010

1111
;; org resume exporters
12-
;; (package! ox-moderncv :recipe (:host gitlab :repo "Titan-C/org-cv"))
13-
;; (package! ox-altacv :recipe (:host gitlab :repo "Titan-C/org-cv"))
12+
(package! ox-moderncv :recipe (:host gitlab :repo "Titan-C/org-cv"))
1413
(package! org-fs-tree :recipe (:host github :repo "ScriptDevil/org-fs-tree"))
1514

1615
;; org babel
@@ -35,3 +34,6 @@
3534

3635
(unpin! org-roam company-org-roam)
3736
(unpin! bibtex-completion helm-bibtex ivy-bibtex)
37+
38+
(package! gptel
39+
:recipe (:host github :repo "karthink/gptel"))

0 commit comments

Comments
 (0)