Skip to content

Instantly share code, notes, and snippets.

@dive
dive / fix-emacs-permissions-catalina.el
Created September 29, 2019 09:55
Fix Emacs permissions on macOS Catalina
;;; package --- Fix permissions for Emacs.app on macOS Catalina
;;; Author: Artem Loenko
;;; Mail-To: <artyom.loenko@mac.com>
;;; Commentary:
;;; Code:
(defconst _default-emacs-app-plist-path "/Applications/Emacs.app/Contents/Info.plist")
(defconst _temp-buffer-name "*fixing Emacs permissions*")
(defconst _temp-buffer (get-buffer-create _temp-buffer-name))
(with-current-buffer _temp-buffer (erase-buffer))
@maxtruxa
maxtruxa / Makefile
Last active August 31, 2023 14:56
Generic makefile for C/C++ with automatic dependency generation, support for deep source file hierarchies and custom intermediate directories.
# output binary
BIN := test
# source files
SRCS := \
test.cpp
# files included in the tarball generated by 'make dist' (e.g. add LICENSE file)
DISTFILES := $(BIN)
@maxandersen
maxandersen / threaded.plist
Created October 31, 2014 22:09
Threaded layout for MailMate - Adds view that shows threads + messages that match subject. See screenshot at https://www.dropbox.com/s/t5gxgpjcg2aoqyb/Screenshot%202014-10-31%2011.01.06.png?dl=0 copy this file to ~/Library/Application Support/MailMate/Resources/Layouts/Mailboxes/threaded.plist and restart MailMate and then a "Threaded" option sh…
{
name = "Threaded";
rootViewer =
{
viewerType = "MmSplitView";
orientation = "horizontal";
children =
(
{
viewerType = "MmBoxView";