Skip to content

Instantly share code, notes, and snippets.

View shrysr's full-sized avatar

Shreyas Ragavan shrysr

View GitHub Profile
@shrysr
shrysr / tut.md
Created June 11, 2024 19:27 — forked from rain1024/tut.md
Install pdflatex ubuntu

PdfLatex is a tool that converts Latex sources into PDF. This is specifically very important for researchers, as they use it to publish their findings. It could be installed very easily using Linux terminal, though this seems an annoying task on Windows. Installation commands are given below.

  • Install the TexLive base
sudo apt-get install texlive-latex-base
  • Also install the recommended and extra fonts to avoid running into the error [1], when trying to use pdflatex on latex files with more fonts.
Head: master Adds notes on modus-themes
Merge: origin/master Adds alerts and sauron
Push: gh/master Updated readme and init.el
Untracked files (16)
.agignore
.org-id-locations
base-emacs-config.org
base-emacs-config.org.org
baseline-config.org
; http://emacs.stackexchange.com/questions/1051/copy-region-from-emacs-without-newlines
(defun my-copy-simple (&optional beg end)
"Save the current region (or line) to the `kill-ring' after stripping extra whitespace and new lines"
(interactive
(if (region-active-p)
(list (region-beginning) (region-end))
(list (line-beginning-position) (line-end-position))))
(let ((my-text (buffer-substring-no-properties beg end)))
(with-temp-buffer
(insert my-text)

On Debian distros

There appear to be no packages for iosevka for debian. The prescribed method is to add the fonts to the fonts folder. The github issues point towards a PPA which can be added. However, this did not work for me, and I had to resort to manual means.

Downloading the specified font version from github into a temp folder

cd ~/temp
wget "https://github.com/be5invis/Iosevka/releases/download/v2.2.1/01-iosevka-2.2.1.zip"
(nougat-hydra hydra-straight (:color green)
("Straight" (("p" (call-interactively 'straight-pull-package) "Pull one")
	     ("P" (straight-pull-all) "Pull ALL")
	     ("f" (call-interactively 'straight-fetch-package) "Fetch one")
	     ("F" (straight-fetch-all) "Fetch ALL")
	     ("w" (call-interactively 'straight-visit-package-website) "visit package Website")
	     ("g" (call-interactively 'straight-get-recipe) "Get recipe")
	     )))

Heading 1

  • blah blah

deflayer

This will help with different settings for different brains. Eventually, I hope I can use the same settings.

(use-package deflayer
  :straight (deflayer :type git :host github :repo "dustinlacewell/deflayer.el")
  :config
---
packages.el | 66 ++++++++++++++++++++++++++++++++-------------------
scimax-org.el | 54 +++++++++++++++++++++++++++--------------
2 files changed, 77 insertions(+), 43 deletions(-)
diff --git a/packages.el b/packages.el
index 6843d1f..3a97f2f 100644
--- a/packages.el
+++ b/packages.el
@@ -14,23 +14,23 @@
@shrysr
shrysr / emacs-install-26-3.org
Created February 26, 2020 01:20
Emacs 26.3 install from source on Ubuntu 18.04

Installing emacs 26.3 from source on Ubuntu v18.04

These appear to be the minimum number of libraries which need to be installed to get Emacs running:

sudo apt-get install libgtk-3-dev \
     libxpm-dev \
     gnutls-dev \
     libncurses5-dev \
     libx11-dev \
(if (system-type-is-darwin)
(progn
(add-to-list 'load-path "/usr/local/share/emacs/site-lisp/mu4e")
(require 'mu4e)
(require 'mu4e-contrib)
(require 'org-mu4e)
(setq
mue4e-headers-skip-duplicates t
mu4e-view-show-images t