Emoji Fun! :)

Also Now org,markdown and ERC have company enabled (why wasn't this done
before)
This commit is contained in:
Diego Berrocal 2015-08-18 17:27:49 -05:00 committed by syl20bnr
parent a842301633
commit 42dfd8c91f
12 changed files with 65 additions and 2 deletions

View File

@ -17,6 +17,7 @@ This layer adds support for Emoji emoticons from [[http://www.emoji-cheat-sheet.
- Browse Emoji in a dedicated buffer
- Display Emoji images in buffer
- Insert one or several Emoji with an helm front-end
- Completion of Emojis using [[https://github.com/dunn/company-emoji][company-emoji]]
* Install

View File

@ -10,7 +10,9 @@
;;
;;; License: GPLv3
(setq emoji-packages '(emoji-cheat-sheet-plus))
(setq emoji-packages
'(emoji-cheat-sheet-plus
company-emoji))
(defun emoji/init-emoji-cheat-sheet-plus ()
(use-package emoji-cheat-sheet-plus
@ -32,4 +34,13 @@
;; text properties are not applied correctly.
(run-at-time 0.1 nil 'emoji-cheat-sheet-plus-display-mode))
(add-hook 'org-mode-hook 'spacemacs//delay-emoji-cheat-sheet-hook)
(add-to-hooks 'emoji-cheat-sheet-plus-display-mode '(markdown-mode)))))
(add-to-hooks 'emoji-cheat-sheet-plus-display-mode '(markdown-mode-hook
rcirc-mode-hook
erc-mode-hook)))))
(when (configuration-layer/layer-usedp 'auto-completion)
(defun emoji/init-company-emoji ()
(use-package company-emoji
:if (configuration-layer/package-usedp 'company)
:init
(setq company-emoji-insert-unicode nil))))

View File

@ -25,6 +25,8 @@ Layer for [[http://www.emacswiki.org/emacs/ERC][ERC IRC chat]].
=github= layer enabled, or using =gist= package)
- Optional SASL authentication via the variable =erc-enable-sasl-auth=
(using [[http://emacswiki.org/emacs/ErcSASL][erc-sasl]])
- Completion of Emojis using [[https://github.com/dunn/company-emoji][company-emoji]] (still needs a way of showing, either
using the =emoji= layer or having a proper font) :clap:
* Install

View File

@ -12,3 +12,5 @@
(defvar erc-enable-sasl-auth nil
"If non nil then use SASL authenthication with ERC.")
(spacemacs|defvar-company-backends erc-mode)

View File

@ -18,6 +18,8 @@
erc-social-graph
erc-view-log
erc-yt
company
company-emoji
))
(when (system-is-mac)
@ -152,3 +154,11 @@
:init (eval-after-load 'erc '(add-to-list 'erc-modules 'image))))
(defun erc/init-erc-terminal-notifier ())
(when (configuration-layer/layer-usedp 'auto-completion)
(defun erc/post-init-company ()
(spacemacs|add-company-hook erc-mode)
(push 'company-capf company-backends-erc-mode))
(defun erc/post-init-company-emoji ()
(push 'company-emoji company-backends-erc-mode)))

View File

@ -31,6 +31,8 @@ and ZNC.
- Support ZNC support (with optional =~/.authinfo.gpg=)
- Colored nicknames
- WIP: Real time change when people use =/s/foo/bar= in the chats
- Completion of Emojis using [[https://github.com/dunn/company-emoji][company-emoji]] (still needs a way of showing, either
using the =emoji= layer or having a proper font) :clap:
* Install

View File

@ -17,3 +17,5 @@
(defvar rcirc-enable-znc-support nil
"if non nil then znc is enabled.")
(spacemacs|defvar-company-backends rcirc-mode)

View File

@ -3,6 +3,8 @@
rcirc
rcirc-notify
rcirc-color
company
company-emoji
))
(defun rcirc/init-rcirc ()
@ -127,3 +129,11 @@
(defun rcirc/init-rcirc-color ()
(use-package rcirc-color :defer t))
(when (configuration-layer/layer-usedp 'auto-completion)
(defun rcirc/post-init-company ()
(spacemacs|add-company-hook rcirc-mode)
(push 'company-capf company-backends-rcirc-mode))
(defun rcirc/post-init-company-emoji ()
(push 'company-emoji company-backends-rcirc-mode)))

View File

@ -26,6 +26,8 @@ This layer adds markdown support to Spacemacs.
** Features:
- markdown files support via [[http://jblevins.org/git/markdown-mode.git/][markdown-mode]]
- TOC generation via [[https://github.com/ardumont/markdown-toc][markdown-toc]]
- Completion of Emojis using [[https://github.com/dunn/company-emoji][company-emoji]] (still needs a way of showing, either
using the =emoji= layer or having a proper font) :clap:
* Install

View File

@ -15,6 +15,8 @@
markdown-mode
markdown-toc
mmm-mode
company
company-emoji
))
(defun markdown/init-markdown-mode ()
@ -165,3 +167,10 @@ Will work on both org-mode and any mode that accepts plain html."
(mmm-add-mode-ext-class 'markdown-mode nil 'markdown-c++)
(mmm-add-mode-ext-class 'markdown-mode nil 'markdown-elisp)
(mmm-add-mode-ext-class 'markdown-mode nil 'markdown-html))))
(when (configuration-layer/layer-usedp 'auto-completion)
(defun markdown/post-init-company ()
(spacemacs|add-company-hook markdown-mode)
(push 'company-capf company-backends-markdown-mode))
(defun markdown/post-init-company-emoji ()
(push 'company-emoji company-backends-markdown-mode)))

View File

@ -14,3 +14,5 @@
(defvar org-enable-github-support nil
"If non-nil Github related packages are configured.")
(spacemacs|defvar-company-backends org-mode)

View File

@ -20,6 +20,8 @@
org-present
org-repo-todo
toc-org
company
company-emoji
))
(defun org/init-evil-org ()
@ -209,3 +211,11 @@ Will work on both org-mode and any mode that accepts plain html."
(defun org/init-htmlize ()
(use-package htmlize
:defer t))
(when (configuration-layer/layer-usedp 'auto-completion)
(defun org/post-init-company ()
(spacemacs|add-company-hook org-mode)
(push 'company-capf company-backends-org-mode))
(defun org/post-init-company-emoji ()
(push 'company-emoji company-backends-org-mode)))