Skip to content

Instantly share code, notes, and snippets.

View mplscorwin's full-sized avatar
💬
preping for EmacsConf.org

Corwin mplscorwin

💬
preping for EmacsConf.org
View GitHub Profile
#!/bin/bash
# create thumbs
rm .thumb/*-thumb.jpg # 2>/dev/null
(for f in *.jpg ; do
b=`basename "$f" .jpg`;
s=`identify "$f" | cut -d" " -f3 | perl -nle '
($width,$height) = split 'x';
die "bad size" unless $width && $height;
@mplscorwin
mplscorwin / hide-region+.el
Last active May 11, 2023 11:46
Uploading 1.2 as pushed to EmacsWiki - getnly tested
;;; hide-region.el --- hide regions of text using overlays
;;
;; Copyright (C) 2001, 2005 Mathias Dahl
;;
;; Version: 1.0.1
;; Keywords: hide, region
;; Author: Mathias Dahl <mathias.rem0veth1s.dahl@gmail.com>
;; Maintainer: Mathias Dahl
;; URL: http://mathias.dahl.net/pgm/emacs/elisp/hide-region.el
;;
@mplscorwin
mplscorwin / gist:7007fc3c984da8ca3e462f32579067ee
Created April 20, 2023 16:14
yet another version of my build script
#!/usr/bin/bash
# package-emacs-master - Create Snapshot Binary Release Packages for Windows
#
# Copyright 2023 Corwin Brust <corwin@bru.st>
#
# This program is distributed under the terms of the GNU Public
# License version 3 or (at your option) any later version.
#
function url_encode {
#!/usr/bin/bash
# crude-ci - Inf loop running Emacs for Windows snapshot packaging
#
# Copyright 2023 Corwin Brust <corwin@bru.st>
#
# This program is distributed under the terms of the GNU Public
# License version 3 or (at your option) any later version.
#
# the .private file exports SSH_KEY and SSH_USER, needed for rsync
@mplscorwin
mplscorwin / build-emacs-master.sh
Last active March 30, 2023 22:48
Create Snapshot Binary Release Packages for Windows
#!/usr/bin/bash
# package-emacs-master - Create Snapshot Binary Release Packages for Windows
#
# Copyright 2023 Corwin Brust <corwin@bru.st>
#
# This program is distributed under the terms of the GNU Public
# License version 3 or (at your option) any later version.
#
# most likely things to edit
@mplscorwin
mplscorwin / gist:2a39068166a68bce9a6aa390b42ff5c5
Created October 16, 2020 07:04
tidy.el - source and patch source from EmacsWiki
;;; tidy.el --- Interface to the HTML Tidy program
;; Copyright (C) 2001, 2002, 2003 by Free Software Foundation, Inc.
;; Emacs Lisp Archive Entry
;; Filename: tidy.el
;; Author: Kahlil (Kal) HODGSON <dorge@tpg.com.au>
;; X-URL: http://www.emacswiki.org/elisp/tidy.el
;; Time-stamp: <2002-09-30 13:16:23 kahlil>
;; Version: 2.12_patch1
@mplscorwin
mplscorwin / erc-burnt-toast.el
Last active February 18, 2020 06:52
WIndows 10 Notification Center Support for erc-match
;;; erc-burnt-toast.el --- erc-match support for w32 notification center -*- lexical-binding: t; -*-
;; Copyright (C) 2019 Corwin Brust
;; Author: Corwin Brust <corwin@bru.st>
;; URL: https://bru.st
;; Version: 0.1-pre
;; Package-Requires: ((emacs "26.0"))
;; Keywords: irc erc burnt-toast
@mplscorwin
mplscorwin / .gnus
Created January 26, 2020 02:24
Configure Emacs to read Gmail with gnus
;; ~/.gnus
(setq gnus-select-method
'(nnimap "gmail"
(nnimap-address "imap.gmail.com") ; it could also be imap.googlemail.com if that's your server.
(nnimap-server-port "imaps")
(nnimap-stream ssl)
(nnmail-expiry-target "nnimap+gmail:[Gmail]/Trash")
(nnmail-expiry-wait immediate)))
(setq smtpmail-smtp-server "smtp.gmail.com"
@mplscorwin
mplscorwin / .emacs
Last active January 22, 2020 02:15
My very message init script for gnu emacs 26.3 on windows
;;; init --- Emacs startup script
;;; Commentary:
;;;; Corwin Brust <corwin@bru.st>
;;;; huge thankx to Aaron Bedra for http://aaronbedra.com/emacs.d/
;;; Code:
(setq user-full-name "Corwin Brust")
(setq user-mail-address "corwin@bru.st")
;; https://github.com/wyuenho/dotfiles/blob/master/.emacs
@mplscorwin
mplscorwin / erc-frames-mode.el
Last active January 21, 2020 02:01
erc setup sequencing
;;; erc-frames-mode.el --- sequence erc setup -*- lexical-bindings:t -*-
;; Copyright (C) 2019 Corwin Brust
;; Author: Corwin Brust <corwin@bru.st>
;; URL: http://dpaste.com/3NFJV60
;; Version: 0.1-pre
;; Package-Requires: ((emacs "26.0"))
;; Keywords: ERC IRC
;; This file is not part of GNU Emacs.