spacemacs
spacemacs copied to clipboard
"dotspacemacs-line-numbers t" does not work
Description :octocat:
"dotspacemacs-line-numbers t" does not work. Setting it to any value does not bring line numbers. I checked with the .spacemacs.template file to avoid any custom conf issue.
Reproduction guide :beetle:
- Start Emacs
- install the template as .spacemacs
- modify it so that you get "dotspacemacs-line-numbers t"
Observed behaviour: :eyes: :broken_heart: No line numbers displayed when opening a text file.
Expected behaviour: :heart: :smile: Line numbers displayed when opening a text file.
System Info :computer:
- OS: gnu/linux
- Emacs: 26.3
- Spacemacs: 0.300.0
- Spacemacs branch: develop (rev. fa514c6ac)
- Graphic display: t
- Distribution: spacemacs
- Editing style: vim
- Completion: helm
- Layers:
(emacs-lisp helm multiple-cursors treemacs)
- System configuration features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM THREADS LIBSYSTEMD LCMS2
Seems to actually work for most file. The one for which it did not work was without any extension, so maybe it was not recognized as code by emacs
Please provide more details on how to reproduce the issue.
Hi @lebensterben , sorry for the delay. To reproduce:
- load my emacs config (attached)
- echo 42 > foo
- emacs foo # No line number displayed by default
- mv foo foo.rs
- emacs foo.rs # After adding a recognized extension, emacs displays line numbers
.spacemacs
conf: spacemacs.txt
Hi @douglas-raillard-arm , I believe what you experienced is the expected behavior.
When a file without an extension is opened, it is by default in the Fundamental mode. When the dotspacemacs-line-numbers
is toggled in your ~/.spacemacs
, it automatically toggles line numbers in all prog-mode
and text-mode
buffers, but not a fundamental-mode
buffer.
You can change the default mode of a no-extension file to the text-mode if you want. Check here for more details.
Check the Documentations for more details about dotspacemacs-line-numbers
:
Line numbers can be toggled on in all
prog-mode
andtext-mode
buffers by setting thedotspacemacs-line-numbers
variable in your~/.spacemacs
tot
.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!
That makes sense, I'll try to fix my conf, thanks for the insights.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!