functionName (source) :
(add-to-list 'load-path "/path/to/the/jabber/extension")
(require 'jabber)
My advice :
; JABBER / XMPP (GTalk)
(require 'jabber)
(setq-default jabber-account-list (quote (
("john.smith@gmail.com"
(:password . "12345")
(:network-server . "talk.google.com")
(:connection-type . ssl)
)))
)
Well, things get tough (details) ! Here is what ALMOST worked :
; JABBER / XMPP (GTalk)
(require 'jabber)
(setq-default jabber-account-list (quote (
("john.smith@gmail.com"
(:password . "12345")
(:network-server . "127.0.0.1")
(:port . 12345)
(:connection-type . ssl)
)))
)Opening TLS connection to `127.0.0.1'...
Opening TLS connection with `gnutls-cli -p 12345 127.0.0.1'...failed
Opening TLS connection with `gnutls-cli -p 12345 127.0.0.1 --protocols ssl3'...failed
Opening TLS connection with `openssl s_client -connect 127.0.0.1:12345 -no_ssl2 -ign_eof'...failed
Opening TLS connection to `127.0.0.1'...failed
Jabber connection failed
john.smith@gmail.com/nil: connection lost: `nil'Connecting may also fail saying :
Opening TLS connection to `talk.google.com'...
Opening TLS connection with `gnutls-cli -p 5223 talk.google.com'...done
Opening TLS connection to `talk.google.com'...done
john.smith@gmail.com/nil: connection lost: `exited abnormally with code 1
'
Workaround : append to the configuration file (source) :(setq starttls-use-gnutls t
starttls-gnutls-program "gnutls-cli"
starttls-extra-arguments '("--starttls" "--insecure")
)
But the connection is now insecure !
| character to insert | command |
|---|---|
| TAB | CTRL-q TAB |
| CTRL-q-j |
This is achieved with the built-in HideShow module, which is activated by the ALT-x hs-minor-mode command (When activated, (hs) should appear in the status bar).
All keyboard shortcuts start with C-c @. Those ending in s are used to show stuff. Those in h are there to hide stuff.
Depending on your language / settings, typing the @ character itself may also necessitate to hit Alt Gr-0à@, making this a pretty costly 6-keys shortcut .
| object | hide | show |
|---|---|---|
| block |
|
|
| level |
|
|
| all blocks | C-c @ ESC C-h | C-c @ ESC C-s |
In the configuration file, add :
; Remove duplicate lines ; source : http://www.emacswiki.org/emacs/DuplicateLines#toc2 ; Execute this with : ; M-x uniquify-all-lines-buffer (defun uniquify-all-lines-region (start end) "Find duplicate lines in region START to END keeping first occurrence." (interactive "*r") (save-excursion (let ((end (copy-marker end))) (while (progn (goto-char start) (re-search-forward "^\\(.*\\)\n\\(\\(.*\n\\)*\\)\\1\n" end t)) (replace-match "\\1\n\\2"))))) (defun uniquify-all-lines-buffer () "Delete duplicate lines in buffer and keep first occurrence." (interactive "*") (uniquify-all-lines-region (point-min) (point-max)))
And use it with : ALT-x uniquify-all-lines-buffer