diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2009-06-01 19:13:30 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2009-06-01 19:13:30 +0200 |
commit | 3513d65b8b63f639059eb1909eb490cd3dcf2c43 (patch) | |
tree | ca7ad9d737520969ed1fdbfa454164a3ac1f97ff /emacs | |
parent | a0dcc9055d0822e024fab9c1fe5344f0cd1a29ae (diff) | |
download | dotfiles-3513d65b8b63f639059eb1909eb490cd3dcf2c43.tar.gz dotfiles-3513d65b8b63f639059eb1909eb490cd3dcf2c43.tar.xz dotfiles-3513d65b8b63f639059eb1909eb490cd3dcf2c43.zip |
updated emacs config: rect-mark, saveposition, gitignore
added rect-mark to make it posible to visual select rectangle regions
added saveposition to jump to the position of the last visit of the file
added gitignore file to ignore the dynamic files by emacs
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs | 35 |
1 files changed, 34 insertions, 1 deletions
@@ -209,7 +209,7 @@ ; load-path anpassen (setq load-path (cons "/usr/share/maxima/5.9.0/emacs" load-path)) -(setq load-path (append load-path (list "~/.emacs.d/lisp" ))) +(setq load-path (cons "~/.emacs.d/lisp" load-path)) (autoload 'maxima-mode "maxima" "Maxima mode" t) (autoload 'maxima "maxima" "Maxima interactive" t) @@ -306,6 +306,39 @@ (setq template-query nil) (require 'template-simple) +; remember last position in file +(setq save-place-file "~/.emacs.d/saveplace") +(setq-default save-place t) +(require 'saveplace) + +; clever autocomplete mode +(require 'ido) +(ido-mode t) +(setq + ido-ignore-buffers '("\\` " "^\*Mess" "^\*Back" ".*Completion" "^\*Ido") + ido-case-fold t + ido-use-filename-at-point nil + ido-use-url-at-point nil + ido-enable-flex-matching t + ido-max-prospects 6 + ido-confirm-unique-completion t) + +; rectagle select +(require 'rect-mark) +(global-set-key (kbd "C-x r C-SPC") 'rm-set-mark) +(global-set-key (kbd "C-w") + '(lambda(b e) (interactive "r") + (if rm-mark-active + (rm-kill-region b e) (kill-region b e)))) +(global-set-key (kbd "M-w") + '(lambda(b e) (interactive "r") + (if rm-mark-active + (rm-kill-ring-save b e) (kill-ring-save b e)))) +(global-set-key (kbd "C-x C-x") + '(lambda(&optional p) (interactive "p") + (if rm-mark-active + (rm-exchange-point-and-mark p) (exchange-point-and-mark p)))) + ; servermode (to edit files with emacsclient) (server-start) |