Browse Source

Making flycheck happy

- punctiation
- mention arguments in documentation
- docstring comes before (interactive)
master
Marcel van der Boom 10 years ago
parent
commit
8b0e514397
  1. 19
      twister.el

19
twister.el

@ -41,29 +41,29 @@
) )
(defcustom twister-user "twister_user" (defcustom twister-user "twister_user"
"The nickname you use on your twister instance. When posting "The nickname you use on your twister instance.
messages, this will be the name used" When posting messages, this will be the name used"
:type 'string :type 'string
:group 'twister) :group 'twister)
(defcustom twister-rpcuser "user" (defcustom twister-rpcuser "user"
"The RPC username configured in the twister.conf file" "The RPC username configured in the twister.conf file."
:type 'string :type 'string
:group 'twister) :group 'twister)
(defcustom twister-rpcpassword "pwd" (defcustom twister-rpcpassword "pwd"
"The RPC password for the `twister-rpcuser configured in the "The RPC password for the `twister-rpcuser.
twister.conf file" This is configured in the twister.conf file"
:type 'string :type 'string
:group 'twitter) :group 'twitter)
(defcustom twister-host "localhost" (defcustom twister-host "localhost"
"Host where the twister daemon runs" "Host where the twister daemon runs."
:type 'string :type 'string
:group 'twister) :group 'twister)
(defcustom twister-port 28332 (defcustom twister-port 28332
"Port on which twister daemon runs and serves RPC commands" "Port on which twister daemon runs and serves RPC commands."
:type 'integer :type 'integer
:group 'twister) :group 'twister)
@ -132,7 +132,8 @@ while PARAMS contain the rest of the parameters."
(tw-get-next-k twister-user) msg)) (tw-get-next-k twister-user) msg))
(defun twister-post-region (begin end) (defun twister-post-region (begin end)
"Post the current region to twister" "Post the current region to twister.
The BEGIN and END arguments are the usual points of the region."
(interactive "r") (interactive "r")
(let ((selection (buffer-substring-no-properties begin end))) (let ((selection (buffer-substring-no-properties begin end)))
@ -151,8 +152,8 @@ while PARAMS contain the rest of the parameters."
(twister-post-region (point-min) ( point-max))) (twister-post-region (point-min) ( point-max)))
(defun twister-create-post () (defun twister-create-post ()
"Create a new buffer for writing a note."
(interactive) (interactive)
"Create a new buffer for writing a note"
(with-current-buffer (get-buffer-create twister-post-buffername) (with-current-buffer (get-buffer-create twister-post-buffername)
(twister-post-mode) (twister-post-mode)

Loading…
Cancel
Save