Skip to content

Commit

Permalink
Furnish latex editing setup on Nix (#22)
Browse files Browse the repository at this point in the history
* Fix latex editing setup on Nix systems

* Cleanups and fixes

* Set up parallels

* Add EOF line at end
  • Loading branch information
rounakdatta authored Apr 1, 2024
1 parent 6073a39 commit b7f017c
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 13 deletions.
12 changes: 10 additions & 2 deletions configs/emacs/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
;; change `org-directory'. It must be set before org loads!
(setq org-directory "~/personal/rounakdatta.github.io/")

(setq projectile-project-search-path '("~/personal/" "~/hotstar/" "~/tooling/"))
(setq projectile-project-search-path '("~/personal/"))

;; org-roam setting
(setq org-roam-link-title-format "R:%s")
Expand Down Expand Up @@ -188,6 +188,14 @@ Output:
;; numbers are disabled. For relative line numbers, set this to `relative'.
(setq display-line-numbers-type t)

;; Make sure to wrap output lines when in eshell
(add-hook 'eshell-mode-hook
(lambda ()
(setq-local truncate-lines nil)))

;; Unify eshell's PATH and your default shell's PATH
(when (memq window-system '(mac ns x))
(exec-path-from-shell-initialize))

;; Here are some additional functions/macros that could help you configure Doom:
;;
Expand All @@ -204,4 +212,4 @@ Output:
;; This will open documentation for it, including demos of how they are used.
;;
;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
;; they are implemented.
;; they are implemented.
18 changes: 10 additions & 8 deletions configs/emacs/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
deft ; notational velocity for Emacs
doom ; what makes DOOM look the way it does
doom-dashboard ; a nifty splash screen for Emacs
projectile
;;doom-quit ; DOOM quit-message prompts when you quit Emacs
;;(emoji +unicode) ; 🙂
;;fill-column ; a `fill-column' indicator
Expand Down Expand Up @@ -84,7 +85,7 @@
;;grammar ; tasing grammar mistake every you make

:tools
ansible
;;ansible
debugger ; FIXME stepping through code, to help you add bugs
;;direnv
docker
Expand All @@ -97,11 +98,12 @@
magit ; a git porcelain for Emacs
make ; run make tasks from Emacs
pass ; password manager for nerds
;;pdf ; pdf enhancements
pdf ; pdf enhancements
pdf-tools
;;prodigy ; FIXME managing external services & code builders
;;rgb ; creating color strings
;;taskrunner ; taskrunner for all your projects
terraform ; infrastructure as code
;;terraform ; infrastructure as code
;;tmux ; an API for interacting with tmux
;;upload ; map local to remote projects via ssh/ftp

Expand Down Expand Up @@ -138,7 +140,7 @@
javascript ; 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
;;lean
;;factor
;;ledger ; an accounting system in Emacs
Expand All @@ -165,7 +167,7 @@
;;rst ; ReST in peace
(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
;;rust ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
scala ; java, but good
;;scala ; java, but good
;;scheme ; a fully conniving family of lisps
sh ; she sells {ba,z,fi}sh shells on the C xor
;;sml
Expand All @@ -175,17 +177,17 @@
;;web ; the tubes
yaml ; JSON, but readable

:email
;;:email
;;(mu4e +gmail)
;;notmuch
;;(wanderlust +gmail)

:app
;;:app
;;calendar
;;irc ; how neckbeards socialize
;;(rss +org) ; emacs as an RSS reader
;;twitter ; twitter client https://twitter.com/vnought

:config
;;literate
(default +bindings +smartparens))
(default +bindings +smartparens))
9 changes: 8 additions & 1 deletion configs/emacs/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,11 @@
;; ...Or *all* packages (NOT RECOMMENDED; will likely break things)
;(unpin! t)

(package! ob-mermaid)
(unless (package-installed-p 'projectile)
(package-install 'projectile))

(package! ob-mermaid)
(package! exec-path-from-shell)

;; this is required, otherwise only the script of the PDF would be shown
(pdf-tools-install)
2 changes: 2 additions & 0 deletions hosts/ckmac/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
zoom-us
nixpkgs-fmt
gradle_7
texliveFull


# kubernetes related packages
kubernetes-helm
Expand Down
1 change: 1 addition & 0 deletions hosts/ckmac/software.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
# zap is a more thorough uninstall, ref: https://docs.brew.sh/Cask-Cookbook#stanza-zap
cleanup = "zap";
upgrade = true;
extraFlags = [ "--verbose" ];
};

# taps to open, let packages rain
Expand Down
4 changes: 2 additions & 2 deletions hosts/ninezeroes/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@

# Configure keymap in X11
services.xserver = {
layout = "us";
xkbVariant = "";
xkb.layout = "us";
xkb.variant = "";
};

# Enable CUPS to print documents.
Expand Down
1 change: 1 addition & 0 deletions hosts/ninezeroes/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
qutebrowser
zoom-us
nixpkgs-fmt
texliveFull

# password store related packages
gopass
Expand Down

0 comments on commit b7f017c

Please sign in to comment.