|
| |||
|
|
test of ljupdate tail -n 30 ~/.emacs ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;; Useful functions ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;convert a buffer from dos ^M end of lines to unix end of lines (defun dos2unix () (interactive) (goto-char (point-min)) (while (search-forward "\r" nil t) (replace-match ""))) ;vice versa (defun unix2dos () (interactive) (goto-char (point-min)) (while (search-forward "\n" nil t) (replace-match "\r\n"))) ;; Inserts the user name (defun insert-userid () "Insert the my full name and address" (interactive) (insert user-full-name " <" user-mail-address ">")) ;; Inserts the date in the format (defun insert-date () "Insert date at point." (interactive) (insert (format-time-string "%d.%m.%Y %H:%M"))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;; Last changes ;;;;;;;;;;;;;;;;;;;;;;;;;; |
||||||||||||||