0
(apropos-internal "-mode$"
0
+(defun google-region (&optional flags)
0
+ "Google the selected region."
0
+ (browse-url (concat "http://www.google.com/search?ie=utf-8&oe=utf-8&q="
0
+ (buffer-substring (region-beginning) (region-end)))))
0
(defun map-coords (lat lng)
0
"Show a Yahoo map marked with the point LAT by LNG."
0
(interactive "BLatitude: \nBLongitude")
0
(isearch-forward regexp-p no-recursive-edit)))))
0
(defun current-window ()
0
- "Why
get-buffer-window instead of buffer-window? Why isn't this defined already?"
0
+ "Why
isn't this defined already?"
0
(get-buffer-window (current-buffer)))
0
(defun toggle-dedicated-window ()
0
"Toggle the window-dedicated-p state of current window."
0
- (set-window-dedicated-p (current-window) (not (window-dedicated-p (current-window)))))
0
+ (set-window-dedicated-p (current-window)
0
+ (not (window-dedicated-p (current-window)))))
0
(defun window-small-and-large ()
0
(make-local-variable 'column-number-mode)
0
+ (column-number-mode
t)
0
(if (window-system) (hl-line-mode))
0
,(make-char 'greek-iso8859-7 107))
0
-(defun terminus () (interactive) (set-default-font "-xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso8859-1"))
0
+(defun terminus () (interactive)
0
+ "-xos4-terminus-medium-r-normal--14-140-72-72-c-80-iso8859-1"))
0
(defun inconsolata () (interactive) (set-default-font "Inconsolata-12"))
0
(defun dvsm () (interactive) (set-default-font "DejaVu Sans Mono-10"))
0
+(defadvice find-file-at-point (around goto-line compile activate)
0
+ (let ((line (and (looking-at ".*:\\([0-9]+\\)")
0
+ (string-to-number (match-string 1)))))
0
+ (and line (goto-line line))))
0
(defun my-recompile-init ()
0
(byte-recompile-directory (expand-file-name "~/.emacs.d") 0))
0
(defun my-generate-elisp-tags ()
0
- (shell-command "find ~/.emacs.d ~/src/emacs -name \\*el | xargs etags -o ~/.emacs.d/TAGS"))
0
+ "find ~/.emacs.d ~/src/emacs -name \\*el | xargs etags -o ~/.emacs.d/TAGS"))
0
(defun my-generate-rails-tags ()
0
- (shell-command (format "find %s | egrep \"rb$\" | xargs ctags-exuberant -a -e -f %s/TAGS --exclude=vendor --exclude=public --exclude=log --exclude=db"
0
+ (format "find %s | egrep \"rb$\" | xargs ctags-exuberant -a -e -f %s/TAGS --exclude=vendor --exclude=public --exclude=log --exclude=db"
0
(rails-root) (rails-root)))
0
(visit-tags-table (concat (rails-root) "/TAGS")))
0
"Insert a lorem ipsum."
0
(insert "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do "
0
- "eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad "
0
- "minim veniam, quis nostrud exercitation ullamco laboris nisi ut "
0
+ "eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim"
0
+ "ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut "
0
"aliquip ex ea commodo consequat. Duis aute irure dolor in "
0
"reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla "
0
"pariatur. Excepteur sint occaecat cupidatat non proident, sunt in "
Comments
No one has commented yet.