Skip to content

Commit

Permalink
Better integration of ace-jump mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard Abrams committed May 6, 2015
1 parent 23d4aab commit 7b8b8ac
Showing 1 changed file with 32 additions and 4 deletions.
36 changes: 32 additions & 4 deletions emacs.org
Expand Up @@ -347,9 +347,6 @@
(global-set-key (kbd "<f6>") 'repeat-complex-command)
(global-set-key (kbd "<f7>") 'other-window)
(global-set-key (kbd "<f8>") 'ido-switch-buffer)

(require 'ace-jump-mode)
(define-key global-map (kbd "S-<f7>") 'ace-jump-mode)
#+END_SRC

Set up [[https://github.com/abo-abo/ace-window][ace-window]] mode:
Expand Down Expand Up @@ -510,6 +507,31 @@
(global-set-key (kbd "C-M-<right>") 'end-of-buffer)
#+END_SRC

Better jumping around the buffer with [[https://github.com/winterTTr/ace-jump-mode][ace-jump-mode]] and friends.

#+BEGIN_SRC elisp
(require 'ace-jump-mode)

(global-set-key (kbd "C-c SPC") 'ace-jump-mode)
(global-set-key (kbd "C-c C-SPC") 'ace-jump-mode-pop-mark)

(global-set-key (kbd "M-s s") 'ace-jump-mode) ;; Needed for org-mode files
(global-set-key (kbd "M-s a") 'avi-goto-char)
(global-set-key (kbd "M-s w") 'avi-goto-word-1)
(global-set-key (kbd "M-s l") 'avi-goto-line)
#+END_SRC

- =C-c SPC= ... =ace-jump-word-mode=
enter first character of a word, select the highlighted key to move to it.
- =C-u C-c SPC= ... =ace-jump-char-mode=
enter a character for query, select the highlighted key to move to it.
- =C-u C-u C-c SPC= ... =ace-jump-line-mode=
each non-empty line will be marked, select the highlighted key to move to it.
- =M-s l= ... =avi-goto-line= ... works well with org-mode files.
- =M-s .= ... =isearch-forward-symbol-at-point= search forward to
whatever is at point, but you need to =C-s= to jump to next match.
- =M-s _= ... =isearch-forward-symbol=

** Unfill Paragraph

Unfilling a paragraph joins all the lines in a paragraph into a
Expand Down Expand Up @@ -1374,7 +1396,7 @@
And then configure it with the following:

#+BEGIN_SRC elisp
(setq ispell-program-name "aspell")
(setq ispell-program-name "/usr/local/bin/aspell")
(setq ispell-extra-args '("--sug-mode=ultra" "--lang=en_US"))
#+END_SRC

Expand Down Expand Up @@ -1557,6 +1579,12 @@
brew install global --with-exuberant-ctags
#+END_SRC

On Ubuntu Linux, do:

#+BEGIN_SRC sh :tangle no
sudo apt-get install -y exuberant-ctags global
#+END_SRC

If not, copy the configuration, and [[file:~/.globalrc][edit it]]:

#+BEGIN_SRC sh :tangle no
Expand Down

0 comments on commit 7b8b8ac

Please sign in to comment.