Quantcast
Channel: Active questions tagged require - Stack Overflow
Viewing all articles
Browse latest Browse all 166

Emacs error when loading a created file into .emacs

$
0
0
GNU Emacs 28.2

I have created a file print2Buff.el, when starting to learn writing an emacs extension in the directory

~/.emacs.d/extensions/

In the init file, I write:

(add-to-list 'load-path "~/.emacs.d/extensions/")(require 'print2Buff)

Nevertheless, when the init file is opened again, it announces that, in --debug-init mode:

Debugger entered--Lisp error: (error "Loading file /home/***/.emacs.d/extensions/print2Buff.el failed to provide feature ‘print2Buff’")

How could I solve this problem?

I have striven to google many emacs file loading error but I still get stuck.

I wish I would solve the problem to start writing my own emacs extensions.


Viewing all articles
Browse latest Browse all 166

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>