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.
2 Responses to “Use visual-line-mode instead of longlines-mode”
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.
BaVbjS http://gdjI3b7VaWpU1m0dGpvjRrcu9Fk.com