This file contains 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
(evil-define-state god | |
"God state." | |
:tag " <G> " | |
:message "-- GOD MODE --" | |
:entry-hook (evil-god-start-hook) | |
:exit-hook (evil-god-stop-hook) | |
:input-method t | |
:intercept-esc nil) | |
(defun evil-god-start-hook () |
This file contains 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
(defun source (filename) | |
"Update environment variables from a shell source file." | |
(interactive "fSource file: ") | |
(message "Sourcing environment from `%s'..." filename) | |
(with-temp-buffer | |
(shell-command (format "diff -u <(true; export) <(source %s; export)" filename) '(4)) | |
(let ((envvar-re "declare -x \\([^=]+\\)=\\(.*\\)$")) |
This file contains 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
#!/bin/sh | |
# one way (older scala version will be installed) | |
# sudo apt-get install scala | |
#2nd way | |
sudo apt-get remove scala-library scala | |
wget http://www.scala-lang.org/files/archive/scala-2.11.4.deb | |
sudo dpkg -i scala-2.11.4.deb | |
sudo apt-get update |