emacs --daemon
to run in the background.
emacsclient.emacs24 <filename/dirname>
to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
- Undo -
C-/
- Redo -
C-?
- Change case: 1. Camel Case :
M-c
2. Upper Case :M-u
- Lower Case :
M-l
emacs --daemon
to run in the background.
emacsclient.emacs24 <filename/dirname>
to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
C-/
C-?
M-c
2. Upper Case : M-u
M-l
#!/usr/bin/env 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 |
### editor | |
export ALTERNATE_EDITOR=emacs | |
export EDITOR="emacsclient -tc -a emacs" | |
export VISUAL="emacsclient -c -a emacs" | |
# emacsclient as difftool | |
function ediff () { | |
if [ "X${2}" = "X" ]; then | |
echo "USAGE: ediff <FILE 1> <FILE 2>" | |
else | |
quoted1=${1//\\/\\\\}; quoted1=${quoted1//\"/\\\"} |
------------------------------------------------------------------------------- | |
-- HTTP Accept-Language header handler -- | |
-- @originalAuthor: [email protected] -- | |
-- @originalRepository: https://github.com/fghibellini/nginx-http-accept-lang-- | |
-- @modifiedBy: [email protected] -- | |
-- @gist: https://gist.github.com/mauron85/47ed1075262d9e020fe2 -- | |
-- @license: MIT -- | |
-- @requires: -- | |
-- @description: -- | |
-- returns language with greatest quality -- |
var inputs = document.getElementsByTagName('input'); | |
for (var i=0; i < inputs.length; i++) { | |
if (inputs[i].getAttribute('type').toLowerCase() === 'password') { | |
inputs[i].setAttribute('onpaste', ''); | |
} | |
} |