diff options
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) |