Showing posts with label Emacs. Show all posts
Showing posts with label Emacs. Show all posts

Tuesday, August 24, 2010

Emacs Open PDF

just try it
emacs nome.pdf

it's also possible to edit one buffer and see pdf in another.

Commands to zoom in and zoom out
The zoom commands + (doc-view-enlarge) and - (doc-view-shrink) need to reconvert the document at the new size. The current page is converted first.

For efficiency, DocView caches the images produced by gs. The name of this directory is given by the variable doc-view-cache-directory. You can clear the cache directory by typing M-x doc-view-clear-cache.

To force a reconversion of the currently viewed document, type r or g (revert-buffer). To kill the converter process associated with the current buffer, type K (doc-view-kill-proc). The command k (doc-view-kill-proc-and-buffer) kills the converter process and the DocView buffer.

Friday, May 21, 2010

Várias abas no Emacs e Vi

No emacs precisamos do pacote
emacs-goodies-el do ubuntu/debian
e entao ativar o modo com Alt+x tabbar-mode
C-c C -Up / Down muda de grupo
C-c C -Esq / Dir muda de aba

http://www.emacswiki.org/emacs/TabBarMode

no vi temos
:tabnew

http://www.linux.com/archive/feed/59533

Monday, April 26, 2010

Emacs Tips

Emacs and Vi
www.emacswiki.org/emacs/ViAndEmacs

Comandos

[Esc, C-s] = RegExp Search
[C-g, g or C-g C-g] = Goto line
[Ctrl + x, Ctrl + +] = Aumenta a fonte do buffer atual
[Ctrl + x, Ctrl + -] = Diminui a fonte do buffer atual
[C-x, C-t] = Switch two lines

Thursday, April 22, 2010

Emacs Client and Server

Usando o emacs client, a segunda instancia do emacs será aberta muito mais rápido e tambem nao reabre arquivo ja abertos

para usar isto de maneira transparente aqui vao os passos

adicione a linha no seu .emacs

(server-start)

e a seguinte funcao no seu .bashrc

function emacs {
if [ $(pidof /usr/bin/emacs-snapshot-gtk) ]; then \
/usr/bin/emacsclient.emacs-snapshot -c -a emacs-snapshot $1 & \
else \
/usr/bin/emacs-snapshot-gtk $1 & \
fi
}

para testar

# emacs
# emacs

Friday, April 16, 2010

terminal dentro do emacs

M-x shell
M-x eshell
M-x term
M-x ansi-term

Thursday, April 8, 2010

Janelas no Emacs

Quebra Janela verticalmente
C-x 2

Quebra Janela horizontalmente
C-x 3


Setando atalhos para mover entre janelas

(global-set-key (kbd "C-<kp-left>") 'windmove-left) ;; Ctrl + left
(global-set-key (kbd "C-<kp-4>") 'windmove-left) ;; NumLock Ativado

(global-set-key (kbd "C-<kp-right>") 'windmove-right) ;; Ctrl + right
(global-set-key (kbd "C-<kp-6>") 'windmove-right) ;; NumLock Ativado

(global-set-key (kbd "C-<kp-up>") 'windmove-up)
(global-set-key (kbd "C-<kp-8>") 'windmove-up) ;; NumLock Ativado

(global-set-key (kbd "C-<kp-down>") 'windmove-down)
(global-set-key (kbd "C-<kp-2>") 'windmove-down) ;; NumLock Ativado

Setando funcoes e atalhos para redimensionar janelas

(global-set-key (kbd "S-M-<kp-left>") 'shrink-window-horizontally)
(global-set-key (kbd "S-M-<kp-right>") 'enlarge-window-horizontally)
(global-set-key (kbd "M-S-<kp-down>") 'shrink-window)
(global-set-key (kbd "M-S-<kp-up>") 'enlarge-window)

Para permitir voltar janelas fechadas
(winner-mode)

C-c <left> ;; undo de janela
C-c <right> ;; redo de janela

C-u <space>; volta posicao do cursor pra ultima posicao anterior

Blog Archive