The package doesn't exist
zohaad opened this issue · 4 comments
What kind of issue is this? If you'd like help setting up your Emacs to use this package, please add more info to this ticket and I can help. But clearly the package does exist, at the very least on this repo, so you're going to have be more descriptive for me to be able to help you.
M-x package-install RET fira-code-mode RET
gives [No Match]
. Here is what I have tried so far. Putting the use-package snippet in init.el doesn't work: the font is still the default font. Thought it could be the :hook
part, replaced that with :config (global-fira-code-mode)
, font is still the default font. Here are the contents of init.el
(let ((bootstrap-file (concat user-emacs-directory "straight/repos/straight.el/bootstrap.el"))
(bootstrap-version 3))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
(setq straight-use-package-by-default t)
(straight-use-package 'use-package)
(use-package git)
(setq custom-file (make-temp-file ""))
(use-package ayu-theme
:config (load-theme 'ayu-light t))
(use-package fira-code-mode
:custom (fira-code-mode-disabled-ligatures '("[]" "#{" "#(" "#_" "#_(" "x")) ;; List of ligatures to turn off
:config (global-fira-code-mode))
M-x fira-code-mode
gives Fira-Code mode enabled in current buffer
but the font still isn't Fira Code and the ligatures don't work.
I'm not sure what's going on with your installation setup; I've never used straight.el
before, and I've never seen somebody try to use straight and use-package at the same time. package-install
and use-package
both assume that you're using package.el
which is usually mutually exclusive with straight.el
. In addition, since my package is hosted on MELPA, you'll need to add MELPA to your package.el
configuration. You can learn more on MELPA's Getting Started page.
Once you have fira-code-mode
installed, you'll need to follow the rest of the instructions in the Getting Started section of the readme. You have to install a special font in order for the ligatures to work, and this should be supported on most systems as M-x fira-code-mode-install-fonts RET
.
It's also documented in the readme that this package does not set your Emacs font to Fira Code; it's only for providing the ligatures from Fira Code, separate from setting the font itself. If you want to set Fira Code as your primary font, you can do so without this package. Just install Fira Code to your system, then put in your init file: (add-to-list 'default-frame-alist '(font . "Fira Code-12"))
Thank you for your help, and apologies for the nonsensical issue description. I have decided to forgo ligatures for now. As far as I know you are allowed to use package-install
and use-package
together.