* Replicate the following in the latest emacs version
@ 2024-06-18 3:28 Albaro Pereyra
2024-06-18 15:13 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: Albaro Pereyra @ 2024-06-18 3:28 UTC (permalink / raw)
To: help-gnu-emacs
Hello,
I would like to replicate the following in the latest emacs version;
;;; Add line numbers to buffer
(add-hook 'prog-mode-hook 'linum-mode)
(setq linum-format "%4d \u2502 ")
I manage to get the line number but not the line or \u2502 character
Please advise,
Thank you,
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Replicate the following in the latest emacs version
2024-06-18 3:28 Replicate the following in the latest emacs version Albaro Pereyra
@ 2024-06-18 15:13 ` Eli Zaretskii
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2024-06-18 15:13 UTC (permalink / raw)
To: help-gnu-emacs
> From: Albaro Pereyra <albaropereyra22@gmail.com>
> Date: Mon, 17 Jun 2024 20:28:13 -0700
>
> Hello,
>
> I would like to replicate the following in the latest emacs version;
>
>
> ;;; Add line numbers to buffer
> (add-hook 'prog-mode-hook 'linum-mode)
> (setq linum-format "%4d \u2502 ")
>
> I manage to get the line number but not the line or \u2502 character
You need to explicitly load 'linum:
(require 'linum)
(add-hook 'prog-mode-hook 'linum-mode)
(setq linum-format "%4d \u2502 ")
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-06-18 15:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-18 3:28 Replicate the following in the latest emacs version Albaro Pereyra
2024-06-18 15:13 ` Eli Zaretskii
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).