emacs-for-clojure icon indicating copy to clipboard operation
emacs-for-clojure copied to clipboard

Warning (initialization): An error occurred while loading ‘/Users/nsadeh/.emacs.d/init.el’:

Open nsadeh opened this issue 1 year ago • 2 comments

I followed the instructions on the README and got the following error:

⛔ Warning (initialization): An error occurred while loading ‘/Users/nsadeh/.emacs.d/init.el’:

Symbol's function definition is void: global-linum-mode

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace.

information: System: MBP 14" November 2023 OS: macOS Sonoma 14.1.2 Emacs 29.1 Date: December 6, 2023

nsadeh avatar Dec 07 '23 00:12 nsadeh

This fixes it: https://www.reddit.com/r/emacs/comments/15trd1p/stuck_on_trying_to_install_emacs_config_on_emacs/?rdt=63681. Should I make a PR? I am not sure this will work for older versions of Emacs.

nsadeh avatar Dec 07 '23 00:12 nsadeh

Hi,

I commented that post on Reddit as I was facing the same issue and found a way to fix it without using the linum.el library, since it is deprecated.

Open .emacs.d/customizations/ui.el and replace (global-linum-mode) at line 11 by (global-display-line-numbers-mode 1). Then launch emacs, it should work.

That being said, the zip mentioned in the Clojure/Emacs tutorial seems outdated and I wonder if we shouldn't use the master branch of this repo as a config.

Cramplescrunch avatar Dec 15 '23 20:12 Cramplescrunch