* Having Issues With Using 'hallo.el' Example Theme, And Creating A Custom Theme
@ 2022-05-15 19:01 Samuel Banya
2022-05-15 19:14 ` Samuel Banya
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Samuel Banya @ 2022-05-15 19:01 UTC (permalink / raw)
To: Emanuel Berg
Hey there,
I've been following along with this video:
Emacs Tips - How to Create Your Own Color Theme (https://www.youtube.com/watch?v=kCCIudu53Zg)
This video basically uses this theme as an example with the 'autothemer' MELPA package:
https://github.com/daviwil/emacs-from-scratch/blob/master/hallo-theme.el
The problem I have is, I can't get even the example 'hallo' theme to load with 'M-x load-theme hallo'.
More so, I've been trying to create my own Morrowind theme here:
https://github.com/SamuelBanya/emacs-morrowind-theme
Both themes just won't work.
I have a literate config, so here's config on GitHub with 'configuration.org' and 'init.el' present:
https://github.com/SamuelBanya/SamsEmacs
Here's the current output of ~/.emacs.d on my machine (NOTE: The symlinks are because I use GNU Stow to stow away dotfiles like this with 'stow -t ~/.emacs.d'):
/home/sam/.emacs.d:
total used in directory 24 available 286.2 GiB
drwxr-xr-x 5 sam sam 4096 May 15 14:31 .
drwx------ 35 sam sam 4096 May 15 13:36 ..
drwx------ 2 sam sam 4096 May 15 14:37 auto-save-list
lrwxrwxrwx 1 sam sam 33 May 15 13:36 configuration.el -> ../hub/SamsEmacs/configuration.el
lrwxrwxrwx 1 sam sam 34 May 15 13:36 configuration.org -> ../hub/SamsEmacs/configuration.org
drwxr-xr-x 87 sam sam 4096 May 15 13:40 elpa
lrwxrwxrwx 1 sam sam 35 May 15 13:36 emacs-morrowind.el -> ../hub/SamsEmacs/emacs-morrowind.el
lrwxrwxrwx 1 sam sam 24 May 15 13:36 init.el -> ../hub/SamsEmacs/init.el
-rw------- 1 sam sam 624 May 15 14:31 recentf
lrwxrwxrwx 1 sam sam 25 May 15 13:36 snippets -> ../hub/SamsEmacs/snippets
drwxr-xr-x 2 sam sam 4096 May 15 14:31 transient
lrwxrwxrwx 1 sam sam 38 May 15 13:36 word-perfect-theme.el -> ../hub/SamsEmacs/word-perfect-theme.el
Here's the debugger output when I attempted to load the theme:
Debugger entered--Lisp error: (error "Unable to find theme file for ‘emacs-morrowind’")
signal(error ("Unable to find theme file for ‘emacs-morrowind’"))
error("Unable to find theme file for `%s'" emacs-morrowind)
load-theme(emacs-morrowind t)
eval((load-theme 'emacs-morrowind t) t)
eval-expression((load-theme 'emacs-morrowind t) nil nil 127)
funcall-interactively(eval-expression (load-theme 'emacs-morrowind t) nil nil 127)
call-interactively(eval-expression nil nil)
command-execute(eval-expression)
Thanks!
Sam
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Having Issues With Using 'hallo.el' Example Theme, And Creating A Custom Theme
2022-05-15 19:01 Having Issues With Using 'hallo.el' Example Theme, And Creating A Custom Theme Samuel Banya
@ 2022-05-15 19:14 ` Samuel Banya
2022-05-15 19:15 ` Eli Zaretskii
2022-05-15 19:17 ` Eli Zaretskii
2 siblings, 0 replies; 8+ messages in thread
From: Samuel Banya @ 2022-05-15 19:14 UTC (permalink / raw)
To: Emanuel Berg
Minor change in links, I changed the location of my custom theme to here:
https://github.com/SamuelBanya/morrowind-emacs-theme
On Sun, May 15, 2022, at 3:01 PM, Samuel Banya wrote:
> Hey there,
> I've been following along with this video:
> Emacs Tips - How to Create Your Own Color Theme (https://www.youtube.com/watch?v=kCCIudu53Zg)
>
> This video basically uses this theme as an example with the 'autothemer' MELPA package:
> https://github.com/daviwil/emacs-from-scratch/blob/master/hallo-theme.el
>
> The problem I have is, I can't get even the example 'hallo' theme to load with 'M-x load-theme hallo'.
>
> More so, I've been trying to create my own Morrowind theme here:
> https://github.com/SamuelBanya/emacs-morrowind-theme
>
> Both themes just won't work.
>
> I have a literate config, so here's config on GitHub with 'configuration.org' and 'init.el' present:
> https://github.com/SamuelBanya/SamsEmacs
>
> Here's the current output of ~/.emacs.d on my machine (NOTE: The symlinks are because I use GNU Stow to stow away dotfiles like this with 'stow -t ~/.emacs.d'):
> /home/sam/.emacs.d:
> total used in directory 24 available 286.2 GiB
> drwxr-xr-x 5 sam sam 4096 May 15 14:31 .
> drwx------ 35 sam sam 4096 May 15 13:36 ..
> drwx------ 2 sam sam 4096 May 15 14:37 auto-save-list
> lrwxrwxrwx 1 sam sam 33 May 15 13:36 configuration.el -> ../hub/SamsEmacs/configuration.el
> lrwxrwxrwx 1 sam sam 34 May 15 13:36 configuration.org -> ../hub/SamsEmacs/configuration.org
> drwxr-xr-x 87 sam sam 4096 May 15 13:40 elpa
> lrwxrwxrwx 1 sam sam 35 May 15 13:36 emacs-morrowind.el -> ../hub/SamsEmacs/emacs-morrowind.el
> lrwxrwxrwx 1 sam sam 24 May 15 13:36 init.el -> ../hub/SamsEmacs/init.el
> -rw------- 1 sam sam 624 May 15 14:31 recentf
> lrwxrwxrwx 1 sam sam 25 May 15 13:36 snippets -> ../hub/SamsEmacs/snippets
> drwxr-xr-x 2 sam sam 4096 May 15 14:31 transient
> lrwxrwxrwx 1 sam sam 38 May 15 13:36 word-perfect-theme.el -> ../hub/SamsEmacs/word-perfect-theme.el
>
> Here's the debugger output when I attempted to load the theme:
> Debugger entered--Lisp error: (error "Unable to find theme file for ‘emacs-morrowind’")
> signal(error ("Unable to find theme file for ‘emacs-morrowind’"))
> error("Unable to find theme file for `%s'" emacs-morrowind)
> load-theme(emacs-morrowind t)
> eval((load-theme 'emacs-morrowind t) t)
> eval-expression((load-theme 'emacs-morrowind t) nil nil 127)
> funcall-interactively(eval-expression (load-theme 'emacs-morrowind t) nil nil 127)
> call-interactively(eval-expression nil nil)
> command-execute(eval-expression)
>
> Thanks!
>
> Sam
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Having Issues With Using 'hallo.el' Example Theme, And Creating A Custom Theme
2022-05-15 19:01 Having Issues With Using 'hallo.el' Example Theme, And Creating A Custom Theme Samuel Banya
2022-05-15 19:14 ` Samuel Banya
@ 2022-05-15 19:15 ` Eli Zaretskii
2022-05-15 19:17 ` Samuel Banya
2022-05-15 19:17 ` Samuel Banya
2022-05-15 19:17 ` Eli Zaretskii
2 siblings, 2 replies; 8+ messages in thread
From: Eli Zaretskii @ 2022-05-15 19:15 UTC (permalink / raw)
To: help-gnu-emacs
> Date: Sun, 15 May 2022 15:01:18 -0400
> From: "Samuel Banya" <sbanya@fastmail.com>
>
> Here's the debugger output when I attempted to load the theme:
> Debugger entered--Lisp error: (error "Unable to find theme file for ‘emacs-morrowind’")
> signal(error ("Unable to find theme file for ‘emacs-morrowind’"))
> error("Unable to find theme file for `%s'" emacs-morrowind)
> load-theme(emacs-morrowind t)
> eval((load-theme 'emacs-morrowind t) t)
> eval-expression((load-theme 'emacs-morrowind t) nil nil 127)
> funcall-interactively(eval-expression (load-theme 'emacs-morrowind t) nil nil 127)
> call-interactively(eval-expression nil nil)
> command-execute(eval-expression)
What version of Emacs is that?
And what is the value of the variable custom-theme-load-path?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Having Issues With Using 'hallo.el' Example Theme, And Creating A Custom Theme
2022-05-15 19:15 ` Eli Zaretskii
@ 2022-05-15 19:17 ` Samuel Banya
2022-05-15 19:17 ` Samuel Banya
1 sibling, 0 replies; 8+ messages in thread
From: Samuel Banya @ 2022-05-15 19:17 UTC (permalink / raw)
To: Emanuel Berg
Output that you requested:
custom-theme-load-path is a variable defined in ‘custom.el’.
Its value is
("/home/sam/.emacs.d/elpa/gruvbox-theme-20220101.1208/" "/home/sam/.emacs.d/elpa/spacemacs-theme-20220430.2248/" custom-theme-directory t)
List of directories to search for custom theme files.
When loading custom themes (e.g. in ‘customize-themes’ and
‘load-theme’), Emacs searches for theme files in the specified
order. Each element in the list should be one of the following:
- the symbol ‘custom-theme-directory’, meaning the value of
‘custom-theme-directory’.
- the symbol t, meaning the built-in theme directory (a directory
named "themes" in ‘data-directory’).
- a directory name (a string).
Each theme file is named THEME-theme.el, where THEME is the theme
name.
This variable is designed for use in lisp code (including
external packages). For manual user customizations, use
‘custom-theme-directory’ instead.
Probably introduced at or before Emacs version 24.1.
On Sun, May 15, 2022, at 3:15 PM, Eli Zaretskii wrote:
> > Date: Sun, 15 May 2022 15:01:18 -0400
> > From: "Samuel Banya" <sbanya@fastmail.com>
> >
> > Here's the debugger output when I attempted to load the theme:
> > Debugger entered--Lisp error: (error "Unable to find theme file for ‘emacs-morrowind’")
> > signal(error ("Unable to find theme file for ‘emacs-morrowind’"))
> > error("Unable to find theme file for `%s'" emacs-morrowind)
> > load-theme(emacs-morrowind t)
> > eval((load-theme 'emacs-morrowind t) t)
> > eval-expression((load-theme 'emacs-morrowind t) nil nil 127)
> > funcall-interactively(eval-expression (load-theme 'emacs-morrowind t) nil nil 127)
> > call-interactively(eval-expression nil nil)
> > command-execute(eval-expression)
>
> What version of Emacs is that?
>
> And what is the value of the variable custom-theme-load-path?
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Having Issues With Using 'hallo.el' Example Theme, And Creating A Custom Theme
2022-05-15 19:15 ` Eli Zaretskii
2022-05-15 19:17 ` Samuel Banya
@ 2022-05-15 19:17 ` Samuel Banya
2022-05-15 20:05 ` Emanuel Berg
1 sibling, 1 reply; 8+ messages in thread
From: Samuel Banya @ 2022-05-15 19:17 UTC (permalink / raw)
To: Emanuel Berg
Version for Emacs:
sam@notestation ~/hub $ emacs --version
GNU Emacs 28.1
Copyright (C) 2022 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
On Sun, May 15, 2022, at 3:15 PM, Eli Zaretskii wrote:
> > Date: Sun, 15 May 2022 15:01:18 -0400
> > From: "Samuel Banya" <sbanya@fastmail.com>
> >
> > Here's the debugger output when I attempted to load the theme:
> > Debugger entered--Lisp error: (error "Unable to find theme file for ‘emacs-morrowind’")
> > signal(error ("Unable to find theme file for ‘emacs-morrowind’"))
> > error("Unable to find theme file for `%s'" emacs-morrowind)
> > load-theme(emacs-morrowind t)
> > eval((load-theme 'emacs-morrowind t) t)
> > eval-expression((load-theme 'emacs-morrowind t) nil nil 127)
> > funcall-interactively(eval-expression (load-theme 'emacs-morrowind t) nil nil 127)
> > call-interactively(eval-expression nil nil)
> > command-execute(eval-expression)
>
> What version of Emacs is that?
>
> And what is the value of the variable custom-theme-load-path?
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Having Issues With Using 'hallo.el' Example Theme, And Creating A Custom Theme
2022-05-15 19:01 Having Issues With Using 'hallo.el' Example Theme, And Creating A Custom Theme Samuel Banya
2022-05-15 19:14 ` Samuel Banya
2022-05-15 19:15 ` Eli Zaretskii
@ 2022-05-15 19:17 ` Eli Zaretskii
2 siblings, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2022-05-15 19:17 UTC (permalink / raw)
To: help-gnu-emacs
> Date: Sun, 15 May 2022 15:01:18 -0400
> From: "Samuel Banya" <sbanya@fastmail.com>
>
> /home/sam/.emacs.d:
> total used in directory 24 available 286.2 GiB
> drwxr-xr-x 5 sam sam 4096 May 15 14:31 .
> drwx------ 35 sam sam 4096 May 15 13:36 ..
> drwx------ 2 sam sam 4096 May 15 14:37 auto-save-list
> lrwxrwxrwx 1 sam sam 33 May 15 13:36 configuration.el -> ../hub/SamsEmacs/configuration.el
> lrwxrwxrwx 1 sam sam 34 May 15 13:36 configuration.org -> ../hub/SamsEmacs/configuration.org
> drwxr-xr-x 87 sam sam 4096 May 15 13:40 elpa
> lrwxrwxrwx 1 sam sam 35 May 15 13:36 emacs-morrowind.el -> ../hub/SamsEmacs/emacs-morrowind.el
> lrwxrwxrwx 1 sam sam 24 May 15 13:36 init.el -> ../hub/SamsEmacs/init.el
> -rw------- 1 sam sam 624 May 15 14:31 recentf
> lrwxrwxrwx 1 sam sam 25 May 15 13:36 snippets -> ../hub/SamsEmacs/snippets
> drwxr-xr-x 2 sam sam 4096 May 15 14:31 transient
> lrwxrwxrwx 1 sam sam 38 May 15 13:36 word-perfect-theme.el -> ../hub/SamsEmacs/word-perfect-theme.el
>
> Here's the debugger output when I attempted to load the theme:
> Debugger entered--Lisp error: (error "Unable to find theme file for ‘emacs-morrowind’")
> signal(error ("Unable to find theme file for ‘emacs-morrowind’"))
> error("Unable to find theme file for `%s'" emacs-morrowind)
> load-theme(emacs-morrowind t)
> eval((load-theme 'emacs-morrowind t) t)
> eval-expression((load-theme 'emacs-morrowind t) nil nil 127)
> funcall-interactively(eval-expression (load-theme 'emacs-morrowind t) nil nil 127)
> call-interactively(eval-expression nil nil)
> command-execute(eval-expression)
If you say
(load-theme 'emacs-morrowind t)
then Emacs will look for a file named "emacs-morrowind-theme.el". But
your theme file's name is just "emacs-morrowind.el".
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Having Issues With Using 'hallo.el' Example Theme, And Creating A Custom Theme
2022-05-15 19:17 ` Samuel Banya
@ 2022-05-15 20:05 ` Emanuel Berg
2022-05-16 1:40 ` Samuel Banya
0 siblings, 1 reply; 8+ messages in thread
From: Emanuel Berg @ 2022-05-15 20:05 UTC (permalink / raw)
To: help-gnu-emacs
Samuel Banya wrote:
> Version for Emacs:
> sam@notestation ~/hub $ emacs --version
> GNU Emacs 28.1
> Copyright (C) 2022 Free Software Foundation, Inc.
> GNU Emacs comes with ABSOLUTELY NO WARRANTY.
> You may redistribute copies of GNU Emacs
> under the terms of the GNU General Public License.
You can get the Emacs version from/in Emacs with
`emacs-version', and with C-u it inserts as well,
i.e. C-u M-x emacs-version RET
GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, cairo
version 1.16.0) of 2021-12-31
You have to fill it manually tho if the line gets to long.
They are working on it ...
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Having Issues With Using 'hallo.el' Example Theme, And Creating A Custom Theme
2022-05-15 20:05 ` Emanuel Berg
@ 2022-05-16 1:40 ` Samuel Banya
0 siblings, 0 replies; 8+ messages in thread
From: Samuel Banya @ 2022-05-16 1:40 UTC (permalink / raw)
To: Emanuel Berg
Yeah its renamed as 'morrowind.el' now as per my latest message:
https://github.com/SamuelBanya/morrowind-emacs-theme
On Sun, May 15, 2022, at 4:05 PM, Emanuel Berg wrote:
> Samuel Banya wrote:
>
> > Version for Emacs:
> > sam@notestation ~/hub $ emacs --version
> > GNU Emacs 28.1
> > Copyright (C) 2022 Free Software Foundation, Inc.
> > GNU Emacs comes with ABSOLUTELY NO WARRANTY.
> > You may redistribute copies of GNU Emacs
> > under the terms of the GNU General Public License.
>
> You can get the Emacs version from/in Emacs with
> `emacs-version', and with C-u it inserts as well,
> i.e. C-u M-x emacs-version RET
>
> GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, cairo
> version 1.16.0) of 2021-12-31
>
> You have to fill it manually tho if the line gets to long.
> They are working on it ...
>
> --
> underground experts united
> https://dataswamp.org/~incal
>
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-05-16 1:40 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-15 19:01 Having Issues With Using 'hallo.el' Example Theme, And Creating A Custom Theme Samuel Banya
2022-05-15 19:14 ` Samuel Banya
2022-05-15 19:15 ` Eli Zaretskii
2022-05-15 19:17 ` Samuel Banya
2022-05-15 19:17 ` Samuel Banya
2022-05-15 20:05 ` Emanuel Berg
2022-05-16 1:40 ` Samuel Banya
2022-05-15 19:17 ` 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).