M-x delete-selection-mode
Also, if you don't like the emacs toolbar get rid of it using
M-x tool-bar-mode
Set the following in your
~/.emacs
file(custom-set-variables
'(tool-bar-mode nil)
'(delete-selection-mode t))
M-x delete-selection-mode
M-x tool-bar-mode
~/.emacs
file C-c C-c
Comment a region M-;
Very handy. Comment and un-comment region Esc-;
Same as above"htags"
on the folder where "gtags"
was run earlier. If you are running it for the first time simply run "htags -g"
. This creates all the G* tag files and also an HTML folder.gozilla
. For example,
$ global -x foo
foo 100 src/foo.cpp
foo 200 src/bar.cpp
$ gozilla -b firefox +100 src/foo.cpp
"global -uv"
followed by "htags"
again. As simple as that. M-x set-buffer-file-coding-system RET undecided-unix
C-_
, undo on emacs can also be done using C-/
and C-x u
, though I don't like the last one.
M-x server-start
OR, add it to your .emacs
file;; Start the emacs server
(server-start)
.bashrc
.### Open emacs in console mode, non-gui
alias em='emacs -nw'
### Tell running emacs to visit a file
alias ecf='emacsclient -n'
### Start emacs with new frame
alias ecn='emacsclient -nw -c'
ecn
and it would start a new Emacs instance but still show me the buffers from the existing one. C-x 5 0
sudo dd if=/dev/sdd of=/dev/null bs=50M count=1
1+0 records in
1+0 records out
52428800 bytes (52 MB) copied, 2.62946 s, 19.9 MB/s
sync; echo 1 | sudo tee /proc/sys/vm/drop_caches
sync; echo 2 | sudo tee /proc/sys/vm/drop_caches
sync; echo 3 | sudo tee /proc/sys/vm/drop_caches
"echo something > /proc/somewhere"
, especially when you got to use "sudo". echo value | sudo tee /proc/somewhere
.bashrc
file: stty ixany
stty ixoff -ixon