Skip to content

Instantly share code, notes, and snippets.

View shrysr's full-sized avatar

Shreyas Ragavan shrysr

View GitHub Profile
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
@shrysr
shrysr / wordpress-indieweb-custom.php
Created August 11, 2019 23:25 — forked from glueckpress/wordpress-indieweb-custom.php
[WordPress][IndieWeb] Customise relme list of the IndieWeb plugin.
<?php
/**
* Plugin Name: IndieWeb | Customisations
* Description: Customises relme list of the IndieWeb plugin.
* Version: 2019.01
* Author: Caspar Hübinger
* Author URI: http://glueckpress.com/
* License: GNU General Public License v2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/