October 18, 2012 at 9:22 am
· Filed under Uncategorized
After installing 10.8.2 and a new Vertex 4 SSD into my mid-2011 MBP, my machine would come up from sleep but only be half-responsive, and I’d ultimately have to force power it off. Turns out the issue was the drive not coming back up after sleep, and following the instructions here to update the firmware twice (without data loss) seems to have fixed it:
http://www.ocztechnology.com/ssd_tools/OCZ_Vertex_4_and_Agility_4/
Permalink
November 3, 2011 at 2:40 pm
· Filed under Uncategorized
By default, paredit in the Clojure slime-repl doesn’t properly handle literal vectors and maps. This little snippet of elisp seems to fix it.
(defun fix-paredit-repl ()
(interactive)
(local-set-key "{" 'paredit-open-curly)
(local-set-key "}" 'paredit-close-curly)
(modify-syntax-entry ?\{ "(}")
(modify-syntax-entry ?\} "){")
(modify-syntax-entry ?\[ "(]")
(modify-syntax-entry ?\] ")["))
Permalink
June 15, 2011 at 12:58 pm
· Filed under LaTeX
I wanted LaTeX newcommand/renewcommand definitions to show up in the Textmate symbol list, so I could use the Cmd-Shift-T shortcut to jump to them. To accomplish this, I first went to the “LaTeX Language” entry in the bundle editor, and added this block to the “patterns” section:
{ name = 'latex.definition';
match = '(\\)(newcommand|renewcommand)\{[^\}]+\}';
}
Then, I created a new LaTeX Preference with scope selector “latex.definition”, and contents:
{ showInSymbolList = 1;
symbolTransformation = '
s/^\\(newcommand|renewcommand)\{\\(.+)\}/$2/;';
}
Permalink