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
; 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)
View linux-notes.org

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"
View init.org
(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")
	     )))
View deflayer.org

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
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
shrysr / emacs-install-26-3.org
Created Feb 26, 2020
Emacs 26.3 install from source on Ubuntu 18.04
View emacs-install-26-3.org

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)
(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 Aug 11, 2019 — forked from glueckpress/wordpress-indieweb-custom.php
[WordPress][IndieWeb] Customise relme list of the IndieWeb plugin.
View wordpress-indieweb-custom.php
<?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
*/
View sanitised-mail.org

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.