This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(when (site-lisp-library-loadable-p 'helm-fasd) | |
(load "helm-fasd")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs, ... }: | |
{ | |
home.packages = [ | |
pkgs.aws | |
pkgs.fasd | |
pkgs.httpie | |
pkgs.nano | |
pkgs.tig |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defvar emacs-autosave-directory | |
(concat user-emacs-directory "autosaves/") | |
"This variable dictates where to put auto saves. It is set to a | |
directory called autosaves located wherever your .emacs.d/ is | |
located.") | |
(unless (file-exists-p (emacs-autosave-directory)) | |
(make-directory (emacs-autosave-directory))) | |
(setq auto-save-file-name-transforms `((".*" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(setq mac-option-key-is-meta t | |
mac-command-key-is-meta nil | |
mac-option-modifier 'meta) | |
(require 'package) | |
(setq package-enable-at-startup nil) | |
(setq package-archives '(("melpa" . "https://melpa.org/packages/") | |
("gnu" . "https://elpa.gnu.org/packages/"))) | |
(package-initialize) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(let ((autosave-dir "~/.autosaves")) | |
(unless (file-exists-p (expand-file-name autosave-dir)) | |
(make-directory (expand-file-name autosave-dir)))) | |
(setq auto-save-file-name-transforms | |
`((".*" autosave-dir t))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{pkgs, lib, ... }: | |
with lib; | |
with builtins; | |
let | |
dotlib = (import <dotlib>) { pkgs=pkgs; }; | |
gh_token = "de6f19c59fe7d8ae803d6ed646e21aea95e0d3c0"; | |
in { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
emacs = { | |
buildOrg = {pkg ? emacs25-nox}: | |
let | |
buildEnv = { buildInputs = [pkg]; }; | |
buildScript = '' | |
mkdir -p $out; | |
ln -s "${./init.org}" ./init.org; | |
emacs -Q --script "${./assets/org-build.el}" -f make-init-el; | |
cp init.el $out/init.el; | |
''; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, pkgs, ... }: | |
{ | |
imports = [ | |
./pkgs/emacs | |
]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, pkgs, lib, ... }: | |
with builtins; | |
let | |
buildEnv = { buildInputs = [pkgs.emacs25-nox]; }; | |
buildPath = (pkgs.runCommand "init" buildEnv '' | |
mkdir -p $out; | |
ln -s "${./init.org}" ./init.org; | |
emacs -Q --script "${assets/org-build.el}" -f make-init-el; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, pkgs, lib, ... }: | |
with builtins; | |
let | |
buildEnv = { buildInputs = [pkgs.emacs25-nox]; }; | |
buildPath = (pkgs.runCommand "init" buildEnv '' | |
mkdir -p $out; | |
ln -s "${./init.org}" ./init.org; | |
emacs -Q --script "${assets/org-build.el}" -f make-init-el; |