Skip to content

Instantly share code, notes, and snippets.

Shreyas Ragavan shrysr

Block or report user

Report or block shrysr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:da4c711a0867b62323bd372d0352cd44
(defun my-copy-simple (&optional beg end)
"Save the current region (or line) to the `kill-ring' after stripping extra whitespace and new lines"
(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)))
(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 ""
(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")


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")
View scimax-patch
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 /
Created Feb 26, 2020
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 \
View mu4e-config
(if (system-type-is-darwin)
(add-to-list 'load-path "/usr/local/share/emacs/site-lisp/mu4e")
(require 'mu4e)
(require 'mu4e-contrib)
(require 'org-mu4e)
mue4e-headers-skip-duplicates t
mu4e-view-show-images t
shrysr / wordpress-indieweb-custom.php
Created Aug 11, 2019 — forked from glueckpress/wordpress-indieweb-custom.php
[WordPress][IndieWeb] Customise relme list of the IndieWeb plugin.
View wordpress-indieweb-custom.php
* Plugin Name: IndieWeb | Customisations
* Description: Customises relme list of the IndieWeb plugin.
* Version: 2019.01
* Author: Caspar Hübinger
* Author URI:
* License: GNU General Public License v2 or later
* License URI:

07:14 Sanitised version of email config

I’d split the whole process into the following steps and would suggest that you focus on getting each step working. This will also help you troubleshoot which step is actually the problem.

  1. mbsync setup for syncing email.
  2. postfix server for sending email
  3. mu setup for indexing email in synced folder. For this mbsync has to be setup first, and the email available to index.
  4. mu4e (comes with mu) for interface in emacs. If mu is setup, mu4e should work.
You can’t perform that action at this time.