Permalink
Browse files

removing public directory

  • Loading branch information...
1 parent 8648ced commit f815901f51ddc1152068b5569b41643f108de7d2 @jpablobr committed Sep 11, 2011
View
No changes.
View
@@ -1,4 +1,122 @@
Emacs keybindings
=================
-`ido-imenu` C-x C-i
+(kbd "C-x \\") 'align-regexp)
+(kbd "M-=") 'dabbrev-expand)
+(kbd "C-c n") 'cleanup-buffer)
+"\C-s" 'isearch-forward-regexp)
+"\C-r" 'isearch-backward-regexp)
+"\M-m" 'isearch-forward-at-point)
+"\C-\M-s" 'isearch-forward)
+"\C-\M-r" 'isearch-backward)
+(kbd "C-x u") 'view-url)
+(kbd "C-x h") 'mark-whole-buffer)
+(kbd "C-h a") 'apropos)
+(kbd "C-x g") 'magit-status)
+(kbd "C-x C-b") 'ibuffer)
+(kbd "C-x C-n") 'ibuffer)
+
+## Texmate mode
+[(meta \])] 'textmate-shift-right)
+[(meta \[)] 'textmate-shift-left)
+[(meta /)] 'comment-or-uncomment-region-or-line)
+[(meta L)] 'textmate-select-line)
+(kbd "C-l bu") 'browse-url)
+(kbd "C-l cs") 'cheat-fu-sheets)
+(kbd "C-l cc") 'cheat-fu-convert)
+(kbd "C-l cg") 'cheat-fu-commit)
+(kbd "C-l cr") 'ruby-compile-region)
+(kbd "C-l cf") 'ruby-compile-file)
+(kbd "C-l cn") 'cheat-fu-new)
+(kbd "C-l df") 'delete-current-file)
+(kbd "C-l dm") 'ido-imenu); (This is awesome.)
+(kbd "C-l ee") 'eval-buffer)
+(kbd "C-l ei") 'ecb-init-stuff)
+
+(kbd "C-l em") 'ecb-goto-window-methods)
+(kbd "C-l eb") 'ecb-goto-window-edit-by-smart-selection)
+(kbd "C-l ed") 'ecb-goto-window-directories)
+(kbd "C-l es") 'ecb-goto-window-symboldef)
+(kbd "C-l eh") 'ecb-goto-window-history)
+(kbd "C-l el") 'ecb-goto-window-edit-last)
+(kbd "C-l ea") 'ecb-goto-window-analyse)
+
+(kbd "C-l ff") 'find-file)
+(kbd "C-l fl") 'beginning-of-buffer)
+(kbd "C-l fg") 'find-grep)
+(kbd "C-l gt") 'register-to-point)
+(kbd "C-l gs") 'google-s)
+(kbd "C-l gp") 'gist-buffer-private)
+(kbd "C-l gr") 'gist-buffer)
+(kbd "C-l gl") 'goto-line)
+(kbd "C-l ie") 'insert-email)
+(kbd "C-l in") 'insert-name)
+(kbd "C-l id") 'insert-date)
+(kbd "C-l is") 'ispell-region)
+(kbd "C-l jp") 'jp-init-stuff)
+(kbd "C-l jt") 'jp-theme)
+(kbd "C-l ha") 'hs-hide-all)
+(kbd "C-l hs") 'hs-show-all)
+(kbd "C-l hl") 'hs-toggle-hiding)
+(kbd "C-l ll") 'end-of-buffer)
+(kbd "C-l mb") 'menu-bar-mode)
+(kbd "C-l mp") 'match-paren)
+(kbd "C-l rr") 'replace-regexp)
+(kbd "C-l rf") 'rename-file)
+(kbd "C-l ri") 'rails-init-stuff)
+(kbd "C-l rh") 'byte-recompile-home)
+(kbd "C-l tc") 't-ruby-complexity)
+(kbd "C-l tl") 't-linum)
+(kbd "C-l ta") 't-anything)
+(kbd "C-l tm") 't-anything-min)
+(kbd "C-l ss") 'synonym-s)
+(kbd "C-l st") 'test-sh-script)
+(kbd "M-q") 'org-cycle)
+(kbd "M-w") 'copy-region-as-kill)
+(kbd "M-\d") 'backward-kill-word)
+(kbd "M-d") 'kill-word)
+(kbd "C-x b") 'ibuffer)
+(kbd "C-x C-s") 'save-buffer)
+[(meta j)] 'fill-region)
+[(meta up)] 'beginning-of-buffer)
+[(meta down)] 'end-of-buffer)
+[(meta p)] 'beginning-of-buffer)
+[(meta n)] 'end-of-buffer)
+[(meta y)] 'yank-pop)
+(kbd "M-e") 'cua-set-rectangle-mark)
+(kbd "M-,") 'textmate-goto-symbol)
+(kbd "M-l") 'textmate-goto-file)
+(kbd "M-f") 'forward-word)
+(kbd "M-b") 'backward-word)
+
+## perforce bindings
+(kbd "C-C p e") 'p4-edit) ; pkg:perforce
+(kbd "C-C p r") 'p4-revert) ; pkg:perforce
+(kbd "C-C p s") 'p4-sync-code-buffers) ; pkg:perforce
+(kbd "C-C p v") 'p4-env) ; pkg:perforce
+
+## testting Commands
+(kbd "C-C t F") 'jw-run-last-test-or-spec-file) ; pkg:testing
+(kbd "C-C t M") 'jw-run-last-test-or-spec-method) ; pkg:testing
+(kbd "C-C t c") 'jw-run-test-cruise) ; pkg:testing
+(kbd "C-C t f") 'jw-run-test-or-spec-file) ; pkg:testing
+(kbd "C-C t i") 'jw-run-test-integration) ; pkg:testing
+(kbd "C-C t l") 'jw-run-test-functionals) ; pkg:testing
+(kbd "C-C t m") 'jw-run-test-or-spec-method) ; pkg:testing
+(kbd "C-C t r") 'jw-run-test-rake) ; pkg:testing
+(kbd "C-C t s") 'toggle-style) ; pkg:testing
+(kbd "C-C t t") 'jw-mark-for-testing) ; pkg:testing
+(kbd "C-C t u") 'jw-run-test-units) ; pkg:testing
+(kbd "C-C t w") 'jw-test-toggle-warnings) ; pkg:testing
+
+(kbd "C-C t C-f") 'jw-run-last-test-or-spec-file) ; pkg:testing
+(kbd "C-C t C-m") 'jw-run-last-test-or-spec-method) ; pkg:testing
+(kbd "C-C t C-t") 'jw-toggle-clear-buffer-styles) ; pkg:testing
+(kbd "C-C t C-s") 'toggle-debug) ; pkg:testing
+(kbd "C-C t 1") (lambda () (interactive) (setq jw-test-single-window t))) ; pkg:testing
+(kbd "C-C t 2") (lambda () (interactive) (setq jw-test-single-window nil))) ; pkg:testing
+
+## Anything
+;;you can use C-uM-. input symbol (default thing-at-point 'symbol)
+(kbd "M-;") 'anything-for-files)
+"\M-." 'anything-c-etags-select)
View
@@ -1 +0,0 @@
-[test](apt.1.ronn)
View
@@ -1,3 +0,0 @@
-fadfas
-
-adfd
View
No changes.
View
@@ -0,0 +1,71 @@
+Terminal(1) - shortcuts
+=======================
+
+Command Editing Shortcuts
+
+Ctrl + a – go to the start of the command line
+Ctrl + e – go to the end of the command line
+Ctrl + k – delete from cursor to the end of the command line
+Ctrl + u – delete from cursor to the start of the command line
+Ctrl + w – delete from cursor to start of word (i.e. delete backwards one word)
+Ctrl + y – paste word or text that was cut using one of the deletion shortcuts (such as the one above) after the cursor
+Ctrl + xx – move between start of command line and current cursor position (and back again)
+Alt + b – move backward one word (or go to start of word the cursor is currently on)
+Alt + f – move forward one word (or go to end of word the cursor is currently on)
+Alt + d – delete to end of word starting at cursor (whole word if cursor is at the beginning of word)
+Alt + c – capitalize to end of word starting at cursor (whole word if cursor is at the beginning of word)
+Alt + u – make uppercase from cursor to end of word
+Alt + l – make lowercase from cursor to end of word
+Alt + t – swap current word with previous
+Ctrl + f – move forward one character
+Ctrl + b – move backward one character
+Ctrl + d – delete character under the cursor
+Ctrl + h – delete character before the cursor
+Ctrl + t – swap character under cursor with the previous one
+Command Recall Shortcuts
+
+Ctrl + r – search the history backwards
+Ctrl + g – escape from history searching mode
+Ctrl + p – previous command in history (i.e. walk back through the command history)
+Ctrl + n – next command in history (i.e. walk forward through the command history)
+Alt + . – use the last word of the previous command
+Command Control Shortcuts
+
+Ctrl + l – clear the screen
+Ctrl + s – stops the output to the screen (for long running verbose command)
+Ctrl + q – allow output to the screen (if previously stopped using command above)
+Ctrl + c – terminate the command
+Ctrl + z – suspend/stop the command
+Bash Bang (!) Commands
+
+Bash also has some handy features that use the ! (bang) to allow you to do some funky stuff with bash commands.
+
+!! - run last command
+!blah – run the most recent command that starts with ‘blah’ (e.g. !ls)
+!blah:p – print out the command that !blah would run (also adds it as the latest command in the command history)
+!$ – the last word of the previous command (same as Alt + .)
+!$:p – print out the word that !$ would substitute
+!* – the previous command except for the last word (e.g. if you type ‘find some_file.txt /‘, then !* would give you ‘find some_file.txt‘)
+!*:p – print out what !* would substitute
+There is one more handy thing you can do. This involves using the ^^ ‘command’. If you type a command and run it, you can re-run the same command but substitute a piece of text for another piece of text using ^^ e.g.:
+
+$ ls -al
+total 12
+drwxrwxrwx+ 3 Administrator None 0 Jul 21 23:38 .
+drwxrwxrwx+ 3 Administrator None 0 Jul 21 23:34 ..
+-rwxr-xr-x 1 Administrator None 1150 Jul 21 23:34 .bash_profile
+-rwxr-xr-x 1 Administrator None 3116 Jul 21 23:34 .bashrc
+drwxr-xr-x+ 4 Administrator None 0 Jul 21 23:39 .gem
+-rwxr-xr-x 1 Administrator None 1461 Jul 21 23:34 .inputrc
+$ ^-al^-lash
+ls -lash
+total 12K
+ 0 drwxrwxrwx+ 3 Administrator None 0 Jul 21 23:38 .
+ 0 drwxrwxrwx+ 3 Administrator None 0 Jul 21 23:34 ..
+4.0K -rwxr-xr-x 1 Administrator None 1.2K Jul 21 23:34 .bash_profile
+4.0K -rwxr-xr-x 1 Administrator None 3.1K Jul 21 23:34 .bashrc
+ 0 drwxr-xr-x+ 4 Administrator None 0 Jul 21 23:39 .gem
+4.0K -rwxr-xr-x 1 Administrator None 1.5K Jul 21 23:34 .inputrc
+Here, the command was the ^-al^-lash which replaced the –al with –lash in our previous ls command and re-ran the command again.
+
+http://www.skorks.com/2009/09/bash-shortcuts-for-maximum-productivity/

0 comments on commit f815901

Please sign in to comment.