Use visual-line-mode instead of longlines-mode

longlines-mode has a lot of issues with weblogger. It seems that visual-line-mode is much better. I have been using it for some time now, without any issue.

Here is my new weblogger setup …

(require 'weblogger)

(add-hook 'weblogger-start-edit-entry-hook
            (flyspell-mode 1)
            (flyspell-buffer)   ; spell check the fetched post
            (auto-fill-mode -1)
            (visual-line-mode 1)))
(add-hook 'weblogger-publish-entry-hook
            (when visual-line-mode
              (visual-line-mode -1))
            ;; tabs might spoil code indentation
            (untabify (point-min) (point-max))))
(add-hook 'weblogger-publish-entry-end-hook
            (visual-line-mode 1)))

(setq weblogger-config-alist
         ("user" . "puneet")
         ("pass" . "TOPSECRET")
         ("server-url" . "")
         ("weblog" . "1"))
         ("user" . "puneet")
         ("pass" . "ANOTHERTOPSECRET")
         ("server-url" . "")
         ("weblog" . "1"))))

(require 'tls)
;; since I am now using rsd/ssl for wordpress, I need to make sure
;; that I do not get these redundant hostmismatch errors.
(setq tls-hostmismatch nil)

Also note that I am now using RSD to enable SSL connection with the server.

9 Responses to “Use visual-line-mode instead of longlines-mode”

  1. I love this. I’ll probably put it in the documentation or even make it simple to set this up as a customizable setting.

    But for now, I’m tweeting it and making sure emacswiki knows about it.

  2. […] You’re well served to also add visual-line-mode.el and use it only with weblogger mode; check the CoVerification blog for details regarding that. Mating the Emacs I love with the blogging support I need? That’s a […]

  3. Fhkfreal says:

    Where’s the nearest cash machine? sun bbs

  4. Itjfzbyi says:

    What university do you go to? fozya bbs

  5. Ytsiafea says:

    I’m doing a masters in law

  6. Eadrenny says:

    How long are you planning to stay here? Under Nude Models

Leave a Reply

Comment moderation is enabled. Your comment may take some time to appear.