Skip to content

Instantly share code, notes, and snippets.

@XVilka
XVilka / TrueColour.md
Last active October 29, 2024 09:43
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!

@ruediger
ruediger / init-bibtex-mode.el
Last active December 17, 2015 17:58
urlify doi entries in bibtex
;; A better version of this is now upstream! See comments.
;; bibtex-mode
(add-hook 'bibtex-mode-hook
(lambda ()
(setq bibtex-generate-url-list
(cons (list '("doi" . "10\\.[0-9]+/.+")
(concat (or org-doi-server-url "http://dx.doi.org/") "%s")
'("doi" "10\\.[0-9]+/.+" 0))
bibtex-generate-url-list)
@ruediger
ruediger / attributes
Last active September 2, 2024 17:28
A collection of additional "custom hunk header" patterns for .gitattributes. This provides better context in the diff hunk header.
*.tex diff=tex
*.bib diff=bibtex
*.c diff=cpp
*.h diff=cpp
*.c++ diff=cpp
*.h++ diff=cpp
*.cpp diff=cpp
*.hpp diff=cpp
*.cc diff=cpp
*.hh diff=cpp
@ruediger
ruediger / holidays.el
Last active January 16, 2024 13:02
Austrian Holidays for Emacs (Diary)
;; Diary
(require 'holidays)
(setq holiday-austria-holidays '((holiday-fixed 1 1 "Neujahr")
(holiday-fixed 1 6 "Heilige Drei Könige")
(holiday-easter-etc 1 "Ostermontag")
(holiday-fixed 5 1 "Staatsfeiertage")
(holiday-easter-etc 39 "Christi Himmelfahrt")
(holiday-easter-etc 50 "Pfingstmontag")
(holiday-easter-etc 60 "Fronleichnam")
(holiday-fixed 8 15 "Mariä Himmelfahrt")