fuxialexander / doom-termacs

A doom-emacs experience in Termux
29 stars 1 forks source link

Error in private config: #1

Open thephatmaster opened 3 years ago

thephatmaster commented 3 years ago

Hi there,

I am an org-file user who wants to learn Emacs I'm currently at the "googling C-x C-c stage".

I have very intermittent access to a "proper computer", so I have just installed DooM in termux on my phone as per the instructions in README.org

I assume your custom configs are what is letting me interact with emacs using my touchscreen.

When DooM runs I get the following error:

entered--Lisp error: (void-function def-package!)

Running DooM with the --debug-init option gets me the following result:

Debugger entered--Lisp error: (void-function def-package!) (def-package! dired :commands dired-jump :init (setq dired$ eval-buffer(#<buffer *load*-226721> nil "/data/data/com.t$ load-with-code-conversion("/data/data/com.termux/files/hom$ load("/data/data/com.termux/files/home/.doom.d/modules/e..$ (let (file-name-handler-alist) (load (expand-file-name fil$ (condition-case e (let (file-name-handler-alist) (load (ex$ (let ((doom--current-module module) (doom--current-flags ($ (closure ((file . "config") t) (module plist) (let ((doom-$ maphash((closure ((file . "config") t) (module plist) (let$ (if no-config-p nil (maphash (doom-module-loader doom-modu$ (progn (if doom-debug-p (progn (let ((inhibit-message (act$ (if init-p (progn (if doom-debug-p (progn (let ((inhibit-m$ (let* ((init-p (and t (condition-case e (let (file-name-ha$ (progn (setq doom-init-modules-p t) (if no-config-p nil (i$ (if (or force-p (not doom-init-modules-p)) (progn (setq do$ doom-initialize-modules(nil) (progn (setq doom-init-p t) (if doom-debug-p (progn (let ($ (if (or force-p (not doom-init-p)) (progn (setq doom-init-$ doom-initialize() eval-buffer(#<buffer *load*> nil "/data/data/com.termux/f$ load-with-code-conversion("/data/data/com.termux/files/hom$ load("/data/data/com.termux/files/home/.emacs.d/init" noer$ startup--load-user-init-file(#f(compiled-function () #<byt$ command-line()

Any help you can offer would be appreciated.

pedroabelleira commented 3 years ago

Same here

quarkquartet commented 3 years ago

+1

HifenX10 commented 2 years ago

2 years later, I'm getting this issue as well, do we know a root cause?

ngm commented 1 year ago

I got the same error using this repo.

But:

I assume your custom configs are what is letting me interact with emacs using my touchscreen.

I don't think this is the case. You can just do a plain Doom install in termux and it works great.

git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.emacs.d

~/.emacs.d/bin/doom install

See e.g. https://stevebeadleart.com/posts/2023-07-23-how-to-install-doom-emacs-on-termux/