Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate with org-bullets-mode #25

Closed
eddsteel opened this issue Sep 12, 2016 · 8 comments
Closed

Integrate with org-bullets-mode #25

eddsteel opened this issue Sep 12, 2016 · 8 comments

Comments

@eddsteel
Copy link

eddsteel commented Sep 12, 2016

I use emoji for my org bullets, using org-bullets to customise them. When I look at the config with global emojify mode on I see that the emoji are correctly appearing. My config is:

(setq org-bullets-bullet-list '("🍣" "🐸" "🐳" "🐻" "◉" "○" "✸" "✿"))

When I look at an org-mode file I see the bullets appearing as boxes, i.e. emojify is not changing the characters to images. I assume this is caused by something about the way that org-bullets-mode works. It looks like it uses compose-region from composite.el. Is this the same thing as the composition property you mentioned in #16? I tried updating to latest in MELPA and setting (emojify-set-emoji-style '(prettify-symbol ascii unicode github)) but it didn't help.

Let me know if you have any ideas! Thanks for this great project!

@eddsteel eddsteel changed the title Doesn't integrate with org-bullets-mode Integrate with org-bullets-mode Sep 12, 2016
@iqbalansari
Copy link
Owner

iqbalansari commented Sep 13, 2016

Hi,

Glad you like the package and thanks for the bug report. It seems org-bullets uses the same mechanism as prettify-symbol however the implementation described in #16, is not general enough to handle org-bullets, I will need to think of (possibly) another strategy for org-bullets. Let me try again

Thanks

@iqbalansari
Copy link
Owner

Hi @eddsteel,

I have just pushed a general method for handling composed text on master branch. From my initial testing this seems to work well with org-bullets mode, can you give this a try after MELPA updates (can take some time) and report back.

Thanks

@eddsteel
Copy link
Author

Looks great! Thanks so much.

@iqbalansari
Copy link
Owner

Great, I am closing this issue.

Thanks 😄

@frondeus
Copy link

frondeus commented Mar 7, 2018

Hi, I can't properly setup emojify with org-bullets.
emacs-emojify

As you can see, I used same config - copy-pasted it from OP example.
Emojis work fine as state indicators. (TODO, IN_PROGRESS etc.)
It does not matter if I use :github_style: or unicode_style.

When I use :github_style: it prints only ":".
When I use unicode_style: it prints rectangle.

What is more - I cannot use emojis in org-ellipsis variable (but it may be another issue).

I'm using GNU Emacs 25.3.1 (x86_64-w64-mingw32) of 2017-09-12 from Chocolatey on Windows 10.
I downloaded package from MELPA.

@frondeus
Copy link

frondeus commented Mar 8, 2018

It seems that problem with bullets has been resolved.
I used

(require 'font-lock)
(require 'font-lock+)

before loading emojify.

Org-ellipsis is another issue.

@zhanghanghitomi
Copy link

zhanghanghitomi commented Oct 22, 2018

Hi, there,

I still met with the same problems.

Currently, my setting is as
idotspacemacs-configuration-layers
'(
better-defaults
(c-c++ :variables c-c++-default-mode-for-headers 'c++-mode
:variables c-c++-enable-clang-support t)
markdown
python
octave
;; ----------------------------------------------------------------
;; Example of useful layers you may want to use right away.
;; Uncomment some layer names and press (Vim style) or
;; (Emacs style) to install them.
;; ----------------------------------------------------------------
ivy
(auto-completion :variables
auto-completion-return-key-behavior 'complete
auto-completion-tab-key-behavior 'cycle
auto-completion-complete-with-key-sequence nil
auto-completion-complete-with-key-sequence-delay 0.1
auto-completion-private-snippets-directory nil)
bibtex
;; better-defaults
emacs-lisp
emoji
git
(latex :variables latex-build-command "LaTeX"
:variables latex-enable-auto-fill t
:variables latex-enable-folding t)
markdown
org
journal
;; (shell :variables
;; shell-default-height 30
;; shell-default-position 'bottom)
spell-checking
syntax-checking

 (osx :variables osx-dictionary-dictionary-choice "Simplified Chinese - English"
      osx-command-as 'super)

 ;; version-control
 ycmd
 ) 

(defun dotspacemacs/user-config ()
(setq org-bullets-bullet-list '(":whale:" ":tropical_fish:" ":dolphin:" ":fish:"))
)

And these emoji files can show correctly.

But when I open the org file, these org-bullets become ":" instead of what they should be.

I wonder whether the author could give some hint on how to solve this.
If possible, could you share you spacemacs init file so I can check the difference my self.

PS: based on my understanding, this problem should be solved with the new emojify package,
which is contained in the emoji layer.

However, I used the newest version but it seems does not work.

@iqbalansari
Copy link
Owner

Hi @zhanghanghitomi,

Looking at the emoji layer in Spacemacs it does not seem that it uses this (emojify) package for displaying emojis. You will have to install the package separately. I am not really familiar with Spacemacs so I am afraid I am not sure of the correct way of integrating emojify with it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants