Войти в систему

Home
    - Создать дневник
    - Написать в дневник
       - Подробный режим

LJ.Rossia.org
    - Новости сайта
    - Общие настройки
    - Sitemap
    - Оплата
    - ljr-fif

Редактировать...
    - Настройки
    - Список друзей
    - Дневник
    - Картинки
    - Пароль
    - Вид дневника

Сообщества

Настроить S2

Помощь
    - Забыли пароль?
    - FAQ
    - Тех. поддержка



Пишет gdmopen ([info]gdmopen)
@ 2013-05-31 14:48:00


Previous Entry  Add to memories!  Tell a Friend!  Next Entry
test of ljupdate
  • ljupdate — for EMACS.


  • 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 ;;;;;;;;;;;;;;;;;;;;;;;;;;


  •