emacs --daemon to run in the background.
emacsclient.emacs24 <filename/dirname> to open in terminal
M-m and SPC can be used interchangeably.
- Undo -
C-/ - Redo -
C-? - Change case: 1. Camel Case :
M-c2. Upper Case :M-u
- Lower Case :
M-l
| xev -event keyboard | egrep -o 'keycode.*\)' |
| # Load salsa docker commands | |
| if [ -f ~/Projects/gringo/bin/salsa_aliases.sh ]; then | |
| source ~/Projects/gringo/bin/salsa_aliases.sh | |
| fi |
emacs --daemon to run in the background.
emacsclient.emacs24 <filename/dirname> to open in terminal
M-m and SPC can be used interchangeably.
C-/C-?M-c
2. Upper Case : M-uM-l| #!/bin/sh | |
| git fetch | |
| LOCAL=$(git rev-parse @) | |
| REMOTE=$(git rev-parse @{u}) | |
| BASE=$(git merge-base @ @{u}) | |
| if [ $LOCAL = $REMOTE ]; then | |
| echo "Up-to-date" |
| ;; Alternative way to defeat smartparens-mode | |
| (add-hook 'evil-insert-state-entry-hook 'turn-off-smartparens-mode) | |
| (add-hook 'evil-insert-state-exit-hook 'turn-on-smartparens-mode) |
| (define-key evil-normal-state-map "\C-e" 'evil-end-of-line) | |
| (define-key evil-motion-state-map "\C-e" 'evil-end-of-line) | |
| (define-key evil-insert-state-map "\C-e" 'end-of-line) | |
| (define-key evil-normal-state-map "\C-n" 'evil-next-line) | |
| (define-key evil-insert-state-map "\C-n" 'evil-next-line) | |
| (define-key evil-visual-state-map "\C-n" 'evil-next-line) | |
| (define-key evil-normal-state-map "\C-p" 'evil-previous-line) | |
| (define-key evil-insert-state-map "\C-p" 'evil-previous-line) | |
| (define-key evil-visual-state-map "\C-p" 'evil-previous-line) | |
| (define-key evil-normal-state-map "\C-y" 'yank) |
| #!/bin/bash | |
| SALSA_VIRTENV="salsa" | |
| cd $HOME/.virtualenvs/$SALSA_VIRTENV | |
| source ./bin/activate | |
| export PYTHONPATH="$HOME/Projects" | |
| cd $HOME/Projects/salsa | |
| python manage.py runserver 8080 | |
| stty sane |
| (setq inhibit-startup-message t) ; disables splash screen | |
| (setq initial-scratch-message nil) ; suppress initial *scratch* buffer msg | |
| (setq transient-mark-mode t) ; highlights the selected region | |
| (tool-bar-mode -1) ; remove the toolbar | |
| (setq default-major-mode 'text-mode) ; make text-mode default | |
| (setq-default fill-column 66) ; set the fill column for word wrap | |
| (setq-default indent-tabs-mode nil) ; spaces instead of tabs by default | |
| (mouse-wheel-mode t) ; enable mouse wheel | |
| (setq scroll-step 1) ; scroll up by a single line | |
| (add-to-list 'load-path "~/.emacs.d") ; load path |
| cloud-init: ############################################################## | |
| #cloud-config | |
| apt_upgrade: true | |
| apt_sources: | |
| - source: "ppa:sun-java-community-team/sun-java6" | |
| user-script: ############################################################# | |
| #!/bin/sh |
| apt-get -y install python-pip python-dev python-setuptools git-core | |
| apt-get -y install libzmq1 libzmq-dev python-m2crypto | |
| pip install PyYAML pycrypto pyzmq msgpack-python salt |