Skip to content

Instantly share code, notes, and snippets.

View MatthewDarling's full-sized avatar

Matthew Darling MatthewDarling

View GitHub Profile
@MatthewDarling
MatthewDarling / fontify-frame.el
Last active August 29, 2015 14:02
Automatically change font-size based on resolution
;;; Based on http://arnab-deka.com/posts/2012/09/emacs-change-fonts-dynamically-based-on-screen-resolution/
(defun fontify-frame (&optional frame)
(interactive)
(let ((target (or frame (window-frame))))
(if window-system
(if (or
(> (frame-pixel-height) 2000)
(> (frame-pixel-width) 2000))
(set-frame-parameter target 'font "Menlo 19")
(set-frame-parameter target 'font "Menlo 16")))))

Keybase proof

I hereby claim:

  • I am matthewdarling on github.
  • I am matthewdarling (https://keybase.io/matthewdarling) on keybase.
  • I have a public key ASCslzcjgb2RY4gwyX7-RZ9LKzanl-fA1PuXZ3iVvIeKqAo

To claim this, I am signing this object:

@MatthewDarling
MatthewDarling / check-clojure-mode-version.el
Created October 17, 2017 18:17
Indent Clojure code with Emacs
;;; File: check-clojure-mode-version
;;; Matthew Darling
;;; 15 June 2016
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("melpa-stable" . "http://stable.melpa.org/packages/")))
(require 'package)
(package-initialize)
(package-refresh-contents)