twittering-mode的暴力修改

很早之前用过twittering-mode,不过自从GAE的那个接口被封了之后,就没再
管了。最近又想试试了,发现已经支持OAuthor了。不过还是有些问题,懒的找答
案,就暴力修改下了。

curl支持https链接由于证书而造成的问题,修改如下:

	 (curl-args
	  `("--include" "--silent" "-k"
	    ,@(apply 'append
		     (mapcar
		      (lambda (pair)
			;; Do not overwrite internal headers `curl' would use.
			;; Thanks to William Xu.
			;; "cURL - How To Use"
			;; http://curl.haxx.se/docs/manpage.html
			(unless (string= (car pair) "Host")
			  `("-H" ,(format "%s: %s" (car pair) (cdr pair)))))
		      header-list))
;	    ,@(when use-ssl `("--cacert" ,cacert-file-body))
;	    ,@(when (and use-ssl allow-insecure-server-cert)
;		`("--insecure"))

顺便提下使用代理的配置及相关:

(setq twittering-https-proxy-server "127.0.0.1")
(setq twittering-https-proxy-port 8087)
(setq twittering-icon-mode 1)
(setq twittering-timer-interval 300)

1条评论

发表评论

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据