sabof / org-bullets Goto Github PK
View Code? Open in Web Editor NEWutf-8 bullets for org-mode
utf-8 bullets for org-mode
Hi,
Thanks for your work.
I have a problem. When I set
(setq org-hide-emphasis-markers t)
It doesn't show bullets well from the 3rd indented.
How can I avoid this or solve? Please let me know. Thanks.
Why is org-bullets.el
developed in this repository but also tracked in the contrib directory of Org-Mode's repository. I think this is problematic because it means that at least for users who install the org-plus-contrib
package from the Org-Mode Elpa as well as org-bullets
from Melpa it is undefined which version will be used (depends on the order of load-path
).
So I would recommend that you either remove org-bullets.el
from Org-Mode's contrib directory or remove org-bullets
from Melpa. If you choose to do the latter, then you might even want to consider to remove this repository and develop directly in the Org-Mode repository instead.
/cc @purcell
For me <delete>
runs the command delete-forward-char
.
Pressing it with the cursor on a bullet raises the following debugger message:
Debugger entered--Lisp error: (wrong-type-argument sequencep t)
lgstring-glyph-boundary(t 117 118)
delete-forward-char(1 nil)
funcall-interactively(delete-forward-char 1 nil)
command-execute(delete-forward-char)
I'm on GNU Emacs 29.0.50 (build 3, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars) of 2022-08-22.
The Org manual suggests NOT using * to mark unordered lists as this can conflict with recognition of headlines. However, if one uses '+' or '-' instead, then org-bullets does not work for those lists.
(when (>= emacs-major-version 24)
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://raw.githubusercontent.com/d12frosted/elpa-mirror/master/melpa/") t)
(package-initialize)
)
(use-package org-bullets
:config
(add-hook 'org-mode-hook (lambda () (org-bullets-mode 1))))
(setq org-bullets-bullet-list
'(;;; Large
"๐ป"
"๐"
"๐"
"โซ"
"๐ป"
"๐ป"
"๐ป"
"๐ป"
"๐"
"๐"
"๐"
"๐"
"๐"
))
#+TITLE: STAT 5007: Semester 2, Lecture 3. Multiple Linear Regression
#+LATEX_HEADER: \usepackage{amsmath}
testing
[\begin{bmatrix} y_1 \ y_2 \ \vdots \ y_n \end{bmatrix} =
\begin{bmatrix} 1 & x_{12} & \cdots & x_{1k} \ 1 & x_{22} & \cdots & x_{2k} \ \vdots & \vdots & \cdots & \vdots \ 1 & x_{n2} & \cdots & x_{nk} \end{bmatrix} \begin{bmatrix} \beta_1 \ \vdots \ \beta_{k} \end{bmatrix} + \begin{bmatrix} \epsilon_1 \ \epsilon_2 \ \vdots \ \epsilon_n \end{bmatrix} ]
abbreviated contents
emacs -l ~/.emacs.d/minimal.el -Q testing.org
The "abbreviated contents" line isn't formatted properly, and in actual usage the rest of the file also breaks. Can be fixed by putting the source for the maths expression on one line. That's not needed without org-bullets loaded.
I haven't been successful getting the font-face Font Awesome Pro Regular or Light to work. Instead, Emacs appears to fallback to Font Awesome Pro Solid. Here's what I've done/found so far. Using M-x describe-char yields:
xft:-PfEd-Font Awesome 5 Pro-normal-normal-normal-*-16-*-*-*-*-0-iso10646-1
(So, it clearly isn't using the Light face, but does report 'regular', but the fonts that appear are actually from the solid font-face.)
In terminal:
fc-list : family style file spacing | grep Font
prints
/usr/share/fonts/OTF/Font Awesome 5 Pro-Solid-900.otf: Font Awesome 5 Pro,Font Awesome 5 Pro Solid:style=Solid,Book
/usr/share/fonts/OTF/Font Awesome 5 Pro-Regular-400.otf: Font Awesome 5 Pro,Font Awesome 5 Pro Regular:style=Regular
/usr/share/fonts/OTF/Font Awesome 5 Brands-Regular-400.otf: Font Awesome 5 Brands,Font Awesome 5 Brands Regular:style=Regular
/usr/share/fonts/TTF/fa-regular-400.ttf: Font Awesome 5 Pro:style=Regular
/usr/share/fonts/TTF/fa-solid-900.ttf: Font Awesome 5 Pro:style=Solid
/usr/share/fonts/TTF/fa-brands-400.ttf: Font Awesome 5 Brands:style=Regular
/usr/share/fonts/TTF/fa-light-300.ttf: Font Awesome 5 Pro:style=Light
/usr/share/fonts/OTF/Font Awesome 5 Pro-Light-300.otf: Font Awesome 5 Pro,Font Awesome 5 Pro Light:style=Light
I've tried setting the variable using custom, but that didn't work. Custom inserted into my init.el
(org-bullets-face-name (quote Font\ Awesome\ 5\ Pro\ Light))
In the user-init-file I've tried a number of things such as
(setq org-bullets-face-name (quote Font\ Awesome\ 5\ Pro\ Light))
(setq org-bullets-face-name "Font Awesome 5 Pro Light")
(setq org-bullets-face-name "Font Awesome 5 Pro:style=Light")
If I remove all the font files except for the one I want to use, it works without adding any code to my user-init-file.
I appreciate any help that comes my way. Thanks.
As the title suggests, is there any way to use this package to also prettify the plain list bullets? If not, is there any chance it might get implemented?
so this is a stange issue. i am using a package called org-bullets. before the upgrade it worked really well. here is the config
(setq org-bullets-bullet-list '(
"โ "
"โก"
"โข "
"โฃ"
"โค"
"โฅ"
"โฆ"
"โง"
"โจ"
"โฉ"
"โช"
"โซ"
"โฌ"
"โญ"
"โฎ"
))
since upgrading to emacs 25.1 the fonts look really off unless i zoom into a crazy large size. in fact the specific unicode fonts stay the same size as i zoom in until i reach a certain zoom and they become normal again.
anyone has a clue on how to even start looking whats causing this? is it an emacs issue, org-bullets, other?
Inline tasks (see org-inlinetask.el) shows the last two bullets (I think) and this doesn't look so nice with org-bullets. You get something like: "*โ" when using org-indent-mode. I don't know what would be the best solution because I guess the display of the last two stars is there to mark this as an inlinetask. Maybe org-bullets could replace both?
This worked for me
(use-package org-bullets
:ensure t
:commands org-bullets-mode
:hook (org-mode . org-bullets-mode))
You may wish to add to the readme
Hi,
I changed the bullet as the my font does not have the default one.
However, by changing the bullet to:
(setq org-bullets-bullet-list '("โ" "โ" "โ" "โธ"))
The first symbol show a "square" in org file, the rest are fine.
Not sure if it is the org-bullet problem, but the symbol "โ" was displayed fine in .emacs file, and was also displayed fine as normal text in any .org file, but only display incorrectly as the title symbol as the first level sign in an org file.
Any solutions?
When I enable org-bullets, then I don't see the text in capture mode anymore. I enable org-bullets in the org-mode-hook.
I use this theme:
(require 'color-theme)
(color-theme-jsc-light)
Then after calling (org-capture) , I don't see the text I type next to the TODO item.
Whenever org-bullets is enabled, scrolling (and even fast typing) becomes laggy.
I'm running GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21) of 2015-04-10 on builder10-9.porkrind.org
.
If there is a way I can provide more information (e.g. my about my system, config), please let me know.
This is inside the GUI version of Emacs. Note that there is no lag when using a terminal.
I get fontification errors with org files that have src blocks when org-bullets-mode
is enabled.
Example file:
#+TITLE: Spacemacs
* Debugging/reproing
#+begin_src emacs-lisp :tangle yes
(let ((default-directory "~/.emacs.d/elpa/"))
(normal-top-level-add-subdirs-to-load-path))
#+end_src
Here's the stacktrace (I removed the condition-case for the fontification error):
Debugger entered--Lisp error: (args-out-of-range 86 127)
put-text-property(86 127 ws-butler-chg chg)
ws-butler-after-change(86 127 41)
put-text-property(86 127 face nil #<buffer test.org>)
org-src-font-lock-fontify-block("emacs-lisp" 35 130)
org-fontify-meta-lines-and-blocks-1(140)
org-fontify-meta-lines-and-blocks(140)
font-lock-fontify-keywords-region(1 140 nil)
font-lock-default-fontify-region(1 140 nil)
font-lock-fontify-region(1 140 nil)
font-lock-default-fontify-buffer()
font-lock-fontify-buffer()
org-bullets-mode()
run-hooks(change-major-mode-after-body-hook text-mode-hook outline-mode-hook org-mode-hook)
apply(run-hooks (change-major-mode-after-body-hook text-mode-hook outline-mode-hook org-mode-hook))
run-mode-hooks(org-mode-hook)
org-mode()
set-auto-mode-0(org-mode nil)
set-auto-mode()
normal-mode(t)
after-find-file(nil t)
find-file-noselect-1(#<buffer test.org> "~/Dropbox (Personal)/Notes/test.org" nil nil "~/Dropbox (Personal)/Notes/test.org" (213415716 16777220))
find-file-noselect("/Users/aaronjensen/Dropbox (Personal)/Notes/test.org" nil nil nil)
find-file("/Users/aaronjensen/Dropbox (Personal)/Notes/test.org")
ivy--switch-buffer-action(#("test.org" 0 8 (face ivy-virtual)))
ivy-call()
ivy-read("Switch to buffer: " internal-complete-buffer :matcher ivy--switch-buffer-matcher :preselect "*scratch*" :action ivy--switch-buffer-action :keymap (keymap) :caller ivy-switch-buffer)
ivy-switch-buffer()
funcall-interactively(ivy-switch-buffer)
call-interactively(ivy-switch-buffer nil nil)
command-execute(ivy-switch-buffer)
Originally reported in spacemacs: syl20bnr/spacemacs#8455
I want to suggest something like this:
Suppose we have ('*' represents unicode bullet from this package):
* Heading 1
* Heading 2
Now, setting a TODO
on a heading should result in:
โ Heading 1 # TODO, using a unicode "ballot box"
โ Heading 2 # DONE, using a unicode "ballot box with check"
The package 'cl is deprecated. the common-lisp functions used in org-bullets needs to ported to functions from cl-libs.
use of org-bullets raises warning on emacs startup.
It would be nice to sprinkle some ;;;###autoload
declarations in there so that people could activate org-bullets
without having to use require
or add-hook
. You could have a defcustom
variable which, when set, will turn on org-bullets
in all new org-mode
buffers. If you autoload
that defcustom
, users could enable org-bullets
purely through Customize.
I'm not sure if you intended this to be compatible with Emacs run from the terminal but I see the leading stars (even when I set the hidestars startup option for org mode) because they have a black background.
When I open the same file in the GUI Emacs I do not see this black background so the leading stars are hidden and it looks clean.
Running Emacs 28.2.
My init files includes
(use-package org-bullets
:config
(add-hook 'org-mode-hook (lambda () (org-bullets-mode 1))))
as recommended in the Readme.
When I start up Emacs, the initialization fails with the message:
Debugger entered--Lisp error: (setting-constant nil)
set-default(nil nil)
custom-theme-recalc-variable(nil)
enable-theme(user)
enable-theme(use-package)
byte-code("\303\304!\210\303\305!\210\303\306!\210\307\310\311\312#\210\313\310!\210\314\310\10\"\20\11\315=\2038\0\n\316=\2038\0\317\320\321\"\210\322\320\323\324#\210..." [custom-enabled-themes emacs-major-version emacs-minor-version require bytecomp cl-lib tabulated-list custom-declare-theme use-package use-package-theme nil enable-theme remq 24 3 defalias hash-table-keys #f(compiled-function (hash-table) "Return a list of keys in HASH-TABLE." #<bytecode 0x73807fc3bb30797>) function-put speed -1 put byte-optimizer byte-compile-inline-expand custom-declare-group "A use-package declaration for simplifying your `.e..." :group startup] 6)
(use-package org-bullets :config (add-hook 'org-mode-hook (lambda nil (org-bullets-mode 1))))
I haven't experienced this problem in other Emacs builds, including 28.1
The output has just the usual plain text stars. Is this a bug in htmlize or org-bullets?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.