Emacs Tipps
Hier möchte ich ein paar kleine Tipps zu Emacs loswerden. Meine Konfigurationsdatei (
~/.emacs
) hat folgende Einstellungen inne:
- Linux Zwischenablage auch innerhalb des Emacs benutzbar
- Kein Startbildschirm
- UTF8 Encoding
- Backup der editierten Dateien (üblicherweise <Dateiname>~) in ein gesondertes Verzeichnis ablegen
- Bestimmte Sonderzeichen aktivieren
Hier ist die Beispieldatei.
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(setq x-select-enable-clipboard t)
'(inhibit-startup-screen t)
'(woman-locale "de_DE.UTF-8"))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
;; move backup files (~) into own directory
(defun make-backup-file-name (FILE)
(let ((dirname (concat "~/.backups/emacs/"
(format-time-string "%y/%m/%d/"))))
(if (not (file-exists-p dirname))
(make-directory dirname t))
(concat dirname (file-name-nondirectory FILE))))
(define-key key-translation-map [dead-tilde] "~")
(define-key key-translation-map [S-dead-grave] "`")
(define-key key-translation-map [dead-acute] "´")
(define-key key-translation-map [dead-cedilla] "¸")
(define-key key-translation-map [dead-circumflex] "^")