Not Again
At this point, I’ve wiped and reformatted my new Ubuntu computer 4 times over the past 4 months. You could say several things, to which I would likely respond:
You: Are you that much of a novice?
Me: Yup, and it appears to be worsening… I’m the Benjamin Button of Computer Science
You: Isn’t there another way to do it?
Me: Probably, I’m all ears…
You: Can’t you have a productive career as a something else,… maybe a shepard?
Me: Good point, I’m actually quite good at making sheep noises.
So this post is really for me to get my Computer up and running again as quickly as possible… the next time I decide to punch myself in the junk.
Setup
-
Git Clone
thegnome-terminal-colors-solarized
, cd into the folder, and run either:$ ./set_dark.sh
or
$ ./set_light.sh
-
Get Emacs24:
$ sudo apt-get emacs24
-
Install Emacs keybindings system-wide
$ gsettings set org.gnome.desktop.interface gtk-key-theme "Emacs"
-
Get Solarized Themes for Emacs (yes, I have an unhealthy obsession with the Solarized Theme…. I’ve already asked Ethan on several dates, but won’t return my calls
Clone the
emacs-color-theme-solarized
repository and follow the straightforward instructions -
Get
auto-complete
for Emacs NOTE: The only wayinstall this is by watching the first 20 seconds of this video on YouTube frame by frame (I feel like Dark Helmet ordering them to slow down the ship while I’m watching this, but the end result is worth it) -
Get
yasnippet
for Emacs. For this you can actuallyM-x package-install [RET] yasnippet [RET]
and it works fine. -
Quick change of the coloring in Terminal
-
Make sure you
(require 'ido)
in your~/.emacs
file -
Install
org-mode
-
Install
markdown-mode
for Emacs -
Install
pandoc
$ sudo apt-get install pandoc
-
Install
LaTeX
$ sudo apt-get install texlive-full
WHEW… and that should do it! Maybe next time instead of taking 6 hours, it’ll take 2… because just like that awkwark silence that ensues when you realize someone is complete d-bag… this will happen again.
My ~/.emacs
file:
(add-to-list 'load-path "/home/benjaminmgross/.emacs.d/custom/fill-column-indicator/")
(add-to-list 'load-path "/home/benjaminmgross/.emacs.d/elpa/yasnippet-0.8.0/")
(add-to-list 'load-path "~/.emacs.d/")
(require 'auto-complete-config)
(add-to-list 'ac-dictionary-directories "~/.emacs.d//ac-dict")
(ac-config-default)
(require 'fill-column-indicator)
(setq fci-rule-color "red")
(require 'yasnippet)
(yas-global-mode 1)
(setq Visual-line 1)
(setq inhibit-startup-message t)
(require 'color-theme)
(require 'ido)
(ido-mode 't)
(require 'org)
(setq org-log-done t)
(eval-after-load "color-theme"
'(progn
(color-theme-initialize)
(color-theme-hober)))
(add-to-list 'custom-theme-load-path "/home/benjaminmgross/dev/emacs-color-theme-solarized")
(load-theme 'solarized-dark t)
(autoload 'markdown-mode "markdown-mode"
"Major mode for editing Markdown files" t)
(add-to-list 'auto-mode-alist '("\\.text\\'" . markdown-mode))
(add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode))
(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(default ((t (:family "Ubuntu Mono" :foundry "unknown" :slant normal :weight normal :height 151 :width normal)))))