I hereby claim:
- I am alexmurray on github.
- I am alexmurray (https://keybase.io/alexmurray) on keybase.
- I have a public key whose fingerprint is 4D2A D64A A650 A333 4867 1E17 94CB FBD8 BA4E 24F6
To claim this, I am signing this object:
;; hide pos-tip automatically | |
(eval-after-load 'flycheck-pos-tip | |
'(eval-after-load 'pos-tip | |
'(defadvice flycheck-hide-error-buffer (after hide-pos-tip activate) | |
(pos-tip-hide)))) |
# a nicer git-like svn diff which also works for svn externals which | |
# normally svn diff doesn't show | |
function svndiff () { | |
svn status $* | grep '^ *[ADM]' | cut --complement -c -8 | awk '{printf "%s%c", $0, 0}' | xargs -0 svn diff -x -up --depth=files | colordiff | less -R; | |
} | |
function svndiffstat () { | |
svn status $* | grep '^ *[ADM]' | cut --complement -c -8 | awk '{printf "%s%c", $0, 0}' | xargs -0 svn diff -x -up --depth=files | diffstat -C -p0 | |
} |
#!/bin/bash | |
# Shamelessly taken from http://mjwall.com/blog/2013/10/04/how-i-use-emacs/ | |
# This script starts emacs daemon if it is not running, opens whatever file | |
# you pass in and changes the focus to emacs. Without any arguments, it just | |
# opens the current buffer or *scratch* if nothing else is open. The following | |
# example will open ~/.bashrc | |
# ec ~/.bashrc |
#!/bin/bash | |
# Shamelessly taken from http://mjwall.com/blog/2013/10/04/how-i-use-emacs/ | |
# Makes sure emacs daemon is running and opens the file in Emacs in | |
# the terminal. | |
# If you want to execute elisp, use -e whatever, like so | |
# et -e "(message \"Word up\")" |
#!/bin/bash | |
# Shamelessly taken from http://mjwall.com/blog/2013/10/04/how-i-use-emacs/ | |
# simple script to shutdown the running Emacs daemon | |
# emacsclient options for reference | |
# -a Alternate editor, runs bin/false in this case | |
# -e eval the script |
#!/usr/bin/env xdg-open | |
[Desktop Entry] | |
Version=1.0 | |
Terminal=false | |
Type=Application | |
Name=Emacs Client | |
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; | |
Exec=/home/amurray/bin/ec %F | |
Icon=emacs24 | |
StartupWMClass=Emacs |
I hereby claim:
To claim this, I am signing this object:
sudo add-apt-repository ppa:ubuntu-elisp/ppa | |
sudo apt-get update | |
sudo apt-get install emacs25 |
# Set the prompt to include the IP address instead of hostname | |
function get_ip () { | |
IFACE=$(ip -4 route | grep default | head -n1 | awk '{print $5}') | |
if [ ! -z $IFACE ]; then | |
echo -n "|"; ip -4 -o addr show scope global $IFACE | awk '{gsub(/\/.*/, "|",$4); print $4}' | paste -s -d "" | |
else | |
echo -n "||" | |
fi | |
} |
I hereby claim:
To claim this, I am signing this object: