Skip to content

Instantly share code, notes, and snippets.

View kotedo's full-sized avatar

Kai Janson kotedo

  • Chattanooga, TN
View GitHub Profile
@kotedo
kotedo / .emacs
Created December 9, 2014 19:01
.emacs section for different Erlang setups
;; BUNDLE: Erlang-mode
;; PURPOSE: Erlang syntax and grammar
;; Erlang Version R15B01_32 and R15B01_64
(if (file-accessible-directory-p "/usr/local/lib/erlang/lib/tools-2.6.7")
(setq load-path (cons "/usr/local/lib/erlang/lib/tools-2.6.7/emacs" load-path)))
;; Erlang Version R15B03-1_32 and R15B03-1_64
(if (file-accessible-directory-p "/usr/local/lib/erlang/lib/tools-2.6.8")
(setq load-path (cons "/usr/local/lib/erlang/lib/tools-2.6.8/emacs" load-path)))
@kotedo
kotedo / erlswitch
Created December 9, 2014 18:57
erlswitch
#!/usr/bin/env bash
# -*- mode: sh -*-
old=$(ls -l /usr/local/lib/erlang | awk '{print $11}')
others=$(ls -ld /usr/local/lib/erlang* | awk '{print $9}' | grep -v "^/usr/local/lib/erlang$")
default=${old}
declare -a arry
cat <<EOF