-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#+TITLE: Twitter contribution layer for Spacemacs | ||
[[file:img/twitter.png]] | ||
* Table of Contents :TOC: | ||
- [[#description][Description]] | ||
- [[#features][Features]] | ||
- [[#install][Install]] | ||
- [[#layer][Layer]] | ||
- [[#key-bindings][Key Bindings]] | ||
|
||
* Description | ||
This layer adds Twitter support to Spacemacs via the package =twittering-mode=, | ||
do not hesitate to check the original package README [[https://github.com/hayamiz/twittering-mode][here]]. | ||
|
||
* Features | ||
- Activities on Twitter | ||
- Viewing various timelines | ||
- Home timeline | ||
- Replies | ||
- User's timeline | ||
- Public timeline | ||
- Favorites timeline | ||
- Retweets timeline | ||
- Merged timeline | ||
- Timeline without tweets satisfying a condition | ||
- Posting tweets | ||
- Direct message | ||
- ReTweet | ||
- Hash tag | ||
- Signature | ||
- Following and removing users | ||
- Marking tweets as favorites | ||
- HTTP Proxy support | ||
- Secure connection via HTTPS (cURL, GNU Wget, OpenSSL or GnuTLS is required) | ||
|
||
* Install | ||
** Layer | ||
#+begin_src emacs-lisp | ||
(setq-default dotspacemacs-configuration-layers '(twitter)) | ||
#+end_src | ||
|
||
* Key Bindings | ||
|
||
Check out the original package doc [[https://github.com/hayamiz/twittering-mode/blob/master/README.markdown#usage][here]] as the key bindings =feel= evil enough :). |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
;;; packages.el --- twitter Layer packages File for Spacemacs | ||
;; | ||
;; Copyright (c) 2012-2014 Sylvain Benner | ||
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors | ||
;; | ||
;; Author: Sylvain Benner <sylvain.benner@gmail.com> | ||
;; URL: https://github.com/syl20bnr/spacemacs | ||
;; | ||
;; This file is not part of GNU Emacs. | ||
;; | ||
;;; License: GPLv3 | ||
|
||
;; List of all packages to install and/or initialize. Built-in packages | ||
;; which require an initialization must be listed explicitly in the list. | ||
(setq twitter-packages | ||
'(twittering-mode)) | ||
|
||
(defun twitter/init-twittering-mode () | ||
(use-package twittering-mode | ||
:commands twit | ||
:init | ||
(evil-leader/set-key | ||
"at" 'twit) | ||
(when (configuration-layer/package-usedp 'flyspell) | ||
(add-hook 'twittering-edit-mode-hook (lambda () (flyspell-mode 1)))) | ||
(push 'twittering-edit-mode evil-insert-state-modes) | ||
:config | ||
(setq twitter-images-directory | ||
(expand-file-name | ||
(concat spacemacs-cache-directory "twitter-images"))) | ||
(unless (file-exists-p twitter-images-directory) | ||
(make-directory twitter-images-directory)) | ||
(setq twittering-icon-mode t) | ||
(setq twittering-url-show-status nil) | ||
(setq twittering-use-master-password t) | ||
(setq twittering-use-icon-storage 1))) |