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
          (lambda()
            (flyspell-mode 1)
            (flyspell-buffer)   ; spell check the fetched post
            (auto-fill-mode -1)
            (visual-line-mode 1)))
(add-hook 'weblogger-publish-entry-hook
          (lambda()
            (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
          (lambda()
            (visual-line-mode 1)))

(setq weblogger-config-alist
      '(("PRIVATE"
         ("user" . "puneet")
         ("pass" . "TOPSECRET")
         ("server-url" . "https://systemc.in/wordpress/xmlrpc.php?RSD")
         ("weblog" . "1"))
        ("CoVerification"
         ("user" . "puneet")
         ("pass" . "ANOTHERTOPSECRET")
         ("server-url" . "https://blog.coverification.com/xmlrpc.php?RSD")
         ("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.

13 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
    fhsez

  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
    15893

  7. Adjvaxab says:

    I’m sorry, I’m not interested

  8. Qmugoxst says:

    An envelope noiporno
    only a b shut up and gag slut

  9. Qpmchvol says:

    Very interesting tale http://www.zoji.com/1230678 free pics featuring lolitas god dam y he had to u no wat dam i mean really da toes wow haha i never seen dat n a wile

  10. [...] Esta customização foi tirada  daqui… [...]

Leave a Reply

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