-
Notifications
You must be signed in to change notification settings - Fork 161
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
Modeline only appears in non-file buffers #1
Comments
I found this in the Messages buffer
|
Does it work now? |
It still doesn't work, but after changing |
OK. Did you install |
Yes, I have run the command, and I'm afraid it doesn't change anything. |
I think this might be an issue with the encoding in Windows. I'll be back. |
Please try other fonts or encodings. Hmm, I am not using Windows now :( |
If the fonts are still not displayed correctly, please try to put these codes in (defun +doom-maybe-icon-octicon (&rest args)
(when (and (display-graphic-p) (not (eq system-type 'windows-nt)))
(apply 'all-the-icons-octicon args)))
(defun +doom-maybe-icon-faicon (&rest args)
(when (and (display-graphic-p) (not (eq system-type 'windows-nt)))
(apply 'all-the-icons-faicon args)))
(defun +doom-maybe-icon-material (&rest args)
(when (and (display-graphic-p) (not (eq system-type 'windows-nt)))
(apply 'all-the-icons-material args))) |
I have now tested it on my work computer, and it's the same thing. The lisp code above doesn't change anything :-( |
Also on Windows? Any output in the Messages buffer? |
Yes, my work computer runs Windows. And the output in *Messages* is exactly the same. |
It's working! Turns out I was running 26.093 or something like that. I've now upgraded to 26.1. Thank you so much. |
Welcome! I disabled I'm closing this issue. Please let me know if you still have questions. Thanks. |
Have you seen this? Putting |
Thanks! I tried this workaround, but seems it doesn't work. The icons in modeline are messy, and the Emacs is extremely slow after I updated All icons are showed correctly on your side? Can I see the screenshot? On my Windows laptop, the icons are like this |
@VirgiliusHaufniensis I enabled Please update and try on your env. For |
Hmm I'm still having the same issue using Emacs 26.1 in Windows 10. All fonts from ;; UTF-8 everywhere please
(setq locale-coding-system 'utf-8) ; pretty
(set-terminal-coding-system 'utf-8) ; pretty
(set-keyboard-coding-system 'utf-8) ; pretty
(set-selection-coding-system 'utf-8) ; please
(prefer-coding-system 'utf-8) ; with sugar on top
(set-language-environment 'utf-8)
;; Turn off mouse interface early in startup to avoid momentary display
(if (fboundp 'menu-bar-mode) (menu-bar-mode -1))
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1))
(if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1))
;; Define melpas
(require 'package)
(setq package-enable-at-startup nil)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/"))
(add-to-list 'package-archives
'("melpa2" . "http://www.mirrorservice.org/sites/melpa.org/packages/"))
(add-to-list 'package-archives
'("melpa3" . "http://www.mirrorservice.org/sites/stable.melpa.org/packages/"))
(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/") t)
(package-initialize)
;; Bootstrap `use-package'
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
;; Load use-package
(eval-when-compile
(require 'use-package))
;; Essentials starts.
(setq system-time-locale "C")
(winner-mode 1)
(use-package all-the-icons)
(use-package doom-modeline
:ensure t
:defer t
:hook (after-init . doom-modeline-init)) Modeline is only shown on special buffers,
Have also tried putting |
Hi @yiufung ,
(defun cnfonts--set-all-the-icons-fonts (&optional _)
"Show icons in all-the-icons."
(when (featurep 'all-the-icons)
(dolist (charset '(kana han cjk-misc bopomofo gb18030))
(set-fontset-font "fontset-default" charset "all-the-icons" nil 'append)
(set-fontset-font "fontset-default" charset "github-octicons" nil 'append)
(set-fontset-font "fontset-default" charset "FontAwesome" nil 'append)
(set-fontset-font "fontset-default" charset "Material Icons" nil 'append))))
(add-hook 'cnfonts-set-font-finish #'cnfonts--set-all-the-icons-fonts)
(doom-modeline-def-modeline main
(workspace-number window-number bar matches " " buffer-info buffer-position " " selection-info)
(global buffer-encoding major-mode vcs flycheck)) if you still encounter this issue, try |
I have a problem, where the mode-line only is visible in buffers not associated with files (e.g. scratch, dired). As soon as i open an existing file, the modeline completely disappears.
I tried removing modules from my .emacs, but to no avail. It doesn't work with the following .emacs:
`
(require 'package)
(setq package-enable-at-startup nil)
(add-to-list 'package-archives '("ORG" . "http://orgmode.org/elpa/") t)
(add-to-list 'package-archives '("MELPA STABLE" . "http://stable.melpa.org/packages/"))
(add-to-list 'package-archives '("MELPA" . "http://melpa.org/packages/"))
(add-to-list 'package-archives '("MARMALADE" . "http://marmalade-repo.org/packages/"))
(add-to-list 'package-archives '("GNU ELPA" . "http://elpa.gnu.org/packages/"))
(setq package-archive-priorities
'(("ORG" . 10)
;;("MELPA STABLE" . 7)
("GNU ELPA" . 5)
;;("MARMALADE" . 2)
("MELPA" . 9)))
(package-initialize)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(eval-when-compile
(require 'use-package))
(setq use-package-always-ensure t)
(require 'bind-key)
;;; Use-package
(use-package projectile)
(use-package shrink-path)
(use-package eldoc-eval)
(load "~/.emacs.d/doom-modeline.el")
(require 'doom-modeline)
(+doom-modeline|init)
`
(also, the package is not available on Melpa yet)
The text was updated successfully, but these errors were encountered: