Skip to content

Instantly share code, notes, and snippets.

@spector-in-london
spector-in-london / .emacs.el
Created December 31, 2021 20:22 — forked from Mic92/.emacs.el
Mu4e: mark as read and move to spam folder action.
(setq mu4e-spam-folder "/thalheim.io/Spam")
;; Mark as read and move to spam
(add-to-list 'mu4e-marks
'(spam
:char "S"
:prompt "Spam"
:show-target (lambda (target) mu4e-spam-folder)
:action (lambda (docid msg target)
(mu4e~proc-move docid mu4e-spam-folder "+S-u-N"))))
@karthink
karthink / fast-latex-input.el
Last active September 23, 2024 05:35
Configuration for super-fast Latex input using AucTeX, CDLatex and a bit of YaSnippet. See https://karthinks.com/software/latex-input-for-impatient-scholars
;; This elisp code uses use-package, a macro to simplify configuration. It will
;; install it if it's not available, so please edit the following code as
;; appropriate before running it.
;; Note that this file does not define any auto-expanding YaSnippets.
;; Install use-package
(package-install 'use-package)
;; AucTeX settings - almost no changes
@bzamecnik
bzamecnik / cdwifi.sh
Last active June 28, 2024 20:47
Accept ČD Wifi on the command line (if you hate clicking). http://cdwifi.cz
#!/bin/bash
# Accept CD Wifi (Czech railways) on the command line (if you hate clicking).
# http://cdwifi.cz
#
# Put the script to ~/bin/cdwifi and make sure that export it's on the path: PATH=$PATH:~/bin
# Note that if you have a custom DNS set (eg. 8.8.8.8 or 1.1.1.1) they don't resolve
# cdwifi.cz. If you don't want to use their DNS set via DHCP for all your traffic
# the workaround here is to query their DNS server at the gateway just
# for this request.
#