* Position 972
@ 2022-10-29 16:29 Renato Pontefice
2022-10-29 17:46 ` tomas
2022-10-29 18:16 ` Position 972 Juan Manuel Macías
0 siblings, 2 replies; 10+ messages in thread
From: Renato Pontefice @ 2022-10-29 16:29 UTC (permalink / raw)
To: emacs-orgmode
Bruno,
With the common you told me I reach che 972 /M-g c 972) and I found this:
;;;;;;Org mode configuration
Enable Org mode
(require ‘org)
Could be this the error?
Now I’ve erased the two ;; save init.el and restart emacs, but now I obtain:
-------------------------------------------------------------
Warning (initialization): An error occurred while loading ‘/Users/renatopontefice/.emacs.d/init.el’:
Symbol's value as variable is void: Enable
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. Disable showing Disable logging
———————————————————————————————
What’s now…
Renato
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Position 972
2022-10-29 16:29 Position 972 Renato Pontefice
@ 2022-10-29 17:46 ` tomas
2022-10-29 18:04 ` Renato Pontefice
2022-10-29 19:08 ` Init.el Renato Pontefice
2022-10-29 18:16 ` Position 972 Juan Manuel Macías
1 sibling, 2 replies; 10+ messages in thread
From: tomas @ 2022-10-29 17:46 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 828 bytes --]
On Sat, Oct 29, 2022 at 06:29:28PM +0200, Renato Pontefice wrote:
> Bruno,
> With the common you told me I reach che 972 /M-g c 972) and I found this:
>
> ;;;;;;Org mode configuration
> Enable Org mode
> (require ‘org)
>
> Could be this the error?
>
> Now I’ve erased the two ;; save init.el and restart emacs, but now I obtain:
No, no: you have to put (at least one) ; in front of "Enable".
Thing is: a semicolon marks a comment (so Emacs doesn't try to read
it as a program), and this line "Enable Org mode" is meant as a
comment. The mark is missing.
The whole thing should look like this:
;;;;;;Org mode configuration
;; Enable Org mode
(require ‘org)
(actually it doesn't matter how many ; are in front of Enable, but
two would correspond to the convention).
Cheers
--
tomás
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Position 972
2022-10-29 17:46 ` tomas
@ 2022-10-29 18:04 ` Renato Pontefice
2022-10-29 18:29 ` Juan Manuel Macías
2022-10-29 19:08 ` Init.el Renato Pontefice
1 sibling, 1 reply; 10+ messages in thread
From: Renato Pontefice @ 2022-10-29 18:04 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 854 bytes --]
Ok, I’ve reinserted the line you send me, but now, the error 972 ia disappeared, but I have this error:
__________________________________________________
Warning (initialization): An error occurred while loading ‘/Users/renatopontefice/.emacs.d/init.el’:
Symbol's value as variable is void: ‘org
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. Disable showing Disable logging
___________________________________________________
I cannot understand what going on have you any idea?
Thank you
Re
> Il giorno 29 ott 2022, alle ore 19:46, <tomas@tuxteam.de> <tomas@tuxteam.de> ha scritto:
>
> ;;;;;;Org mode configuration
> ;; Enable Org mode
> (require ‘org)
[-- Attachment #2: Type: text/html, Size: 3645 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Position 972
2022-10-29 16:29 Position 972 Renato Pontefice
2022-10-29 17:46 ` tomas
@ 2022-10-29 18:16 ` Juan Manuel Macías
2022-10-29 18:44 ` tomas
1 sibling, 1 reply; 10+ messages in thread
From: Juan Manuel Macías @ 2022-10-29 18:16 UTC (permalink / raw)
To: Renato Pontefice; +Cc: emacs-orgmode
Renato Pontefice writes:
> Bruno,
> With the common you told me I reach che 972 /M-g c 972) and I found this:
>
> ;;;;;;Org mode configuration
> Enable Org mode
> (require ‘org)
>
> Could be this the error?
>
> Now I’ve erased the two ;; save init.el and restart emacs, but now I obtain:
> -------------------------------------------------------------
> Warning (initialization): An error occurred while loading ‘/Users/renatopontefice/.emacs.d/init.el’:
>
> Symbol's value as variable is void: Enable
>
> 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. Disable showing Disable logging
> ———————————————————————————————
>
> What’s now…
Renato, adding to what Tomas and Bruno have explained to you very well,
you have another case in the init that you sent me by mail. Notice the
third line here:
------------------
;; Make Org mode work with files ending in .org
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
The above is the default in recent emacsen
(require 'org)
(setq org-log-done t)
------------------
Emacs will understand The line that begins "The above is the..." as
code, and it is not code but a comment to the code. Therefore, you must
protect that line with an escape character, which in Elisp is (at least)
one ";" (as Tomas explained to you):
;; Make Org mode work with files ending in .org
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
;; The above is the default in recent emacsen
(require 'org)
(setq org-log-done t)
And you also have another case, towards the end:
---------------------
(custom-set-variables
;;custom-set-variables was added by Custom.
;;If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
;; '(package-selected-packages '(org-contacts frame-tabs ebdb)))
::(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
;;)
--------------------
The first line (custom-set-variables) is the beginning of a code that is
commented out (= protected, so that Emacs doesn't read it). This line
should also be commented out (protected), with ;. Otherwise Emacs will
run into a code that starts but doesn't have a resolution.
If you fix that and the line that starts with "Enable", you should no
longer have errors in your init.
Best regards,
Juan Manuel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Position 972
2022-10-29 18:04 ` Renato Pontefice
@ 2022-10-29 18:29 ` Juan Manuel Macías
2022-10-29 18:42 ` tomas
0 siblings, 1 reply; 10+ messages in thread
From: Juan Manuel Macías @ 2022-10-29 18:29 UTC (permalink / raw)
To: Renato Pontefice; +Cc: emacs-orgmode
Renato Pontefice writes:
> Symbol's value as variable is void: ‘org
It's 'org not ‘org. Notice the difference between the quotes[1]. (Did you
modify that part? It was correct before).
[1] https://www.gnu.org/software/emacs/manual/html_node/elisp/Quoting.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Position 972
2022-10-29 18:29 ` Juan Manuel Macías
@ 2022-10-29 18:42 ` tomas
0 siblings, 0 replies; 10+ messages in thread
From: tomas @ 2022-10-29 18:42 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 699 bytes --]
On Sat, Oct 29, 2022 at 06:29:33PM +0000, Juan Manuel Macías wrote:
> Renato Pontefice writes:
>
> > Symbol's value as variable is void: ‘org
>
> It's 'org not ‘org. Notice the difference between the quotes[1]. (Did you
> modify that part? It was correct before).
Perhaps it was Google (through gmail) who modified it. They do that kind
of things. We don't know.
@Renato: it seems your init.el is badly mangled. Please, go through it
and look for pieces of private information. If there are any, remove
them and post the rest for us to see (this has been suggested a couple
of times). That will be a lot quicker than to chase every single bug
in the dark.
Cheers
--
t
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Position 972
2022-10-29 18:16 ` Position 972 Juan Manuel Macías
@ 2022-10-29 18:44 ` tomas
0 siblings, 0 replies; 10+ messages in thread
From: tomas @ 2022-10-29 18:44 UTC (permalink / raw)
To: Juan Manuel Macías; +Cc: Renato Pontefice, emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 376 bytes --]
On Sat, Oct 29, 2022 at 06:16:30PM +0000, Juan Manuel Macías wrote:
[...]
> Renato, adding to what Tomas and Bruno have explained to you very well,
> you have another case in the init that you sent me by mail. Notice the
> third line here:
Oh, I get it that Juan Manuel has received one copy of the init.el.
Then I take back my last mail :-)
Cheers
--
t
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Init.el
2022-10-29 17:46 ` tomas
2022-10-29 18:04 ` Renato Pontefice
@ 2022-10-29 19:08 ` Renato Pontefice
2022-10-29 19:36 ` Init.el tomas
2022-10-29 22:16 ` Init.el Eduardo Ochs
1 sibling, 2 replies; 10+ messages in thread
From: Renato Pontefice @ 2022-10-29 19:08 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 4003 bytes --]
I’m sorry, but I’m in a big big confusion…I regreat but I’m unable to correct the prob the is originated to my init.el and the conclusion is that I cannot use emac.
I ask if you can correct my init.el (that I post)
;; -ss*- mode: elisp -*-
;;--setta il formato della data diversamente ------
;;(setq-default org-display-custom-times t)
(setq org-time-stamp-custom-formats '("<%a %d %m %Y>" . "<%a %d %m %Y %H:%M>"))
;;----- comandi per gestire la grandezza della finestraprincipale di emacs -----
(setq initial-frame-alist
(append '((width . 200) (height . 400) (top 45) (left 45) ())
initial-frame-alist))
;;-----------------------(add-to-list 'default-frame-alist '(height . 24))
(add-to-list 'default-frame-alist '(width . 80))
;;------------ fà partire in AGENDA la settimana dal giorno 1---
(setq calendar-week-start-day 1)
;;---settaggi carattere e dimensione di default del carattere--
(set-face-attribute 'default nil :font "Andale Mono" :height 160 )
;; Disable the splash screen (to enable it agin, replace the t with 0)
(setq inhibit-splash-screen t)
;; Enable transient mark mode
(transient-mark-mode 1)
;;;;;;Org mode configuration
Enable Org mode
(require 'org)
;; Make Org mode work with files ending in .org
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
The above is the default in recent emacsen
(require 'org)
(setq org-log-done t)
;; set maximum indentation for description lists
(setq org-list-description-max-indent 5)
;; prevent demoting heading also shifting text inside sections
(setq org-adapt-indentation nil)
;;-------- determina le sequenze di stato al TODO
(setq org-todo-keywords
'((sequence "TODO" "IN-PROGRESS" "WAITING" "DONE")))
;;-------------------------- file utilizzati per TODO list in Agenda
(setq org-agenda-files '( "~/org/agenda/"
;; "~/org/agenda/amorc.org <http://amorc.org/>"
;; "~/org/agenda/amorc.org <http://amorc.org/>"
;; "~/org/agenda/renato.org <http://renato.org/>"
))
;; mappa alcuni tasti per ottenere le parentesi graffe e quadre
(global-set-key "\M-(" (lambda () (interactive) (insert "{")))
(global-set-key "\M-)" (lambda () (interactive) (insert "}")))
(global-set-key "\M-7" (lambda () (interactive) (insert "#")))
(global-set-key "\M-8" (lambda () (interactive) (insert "[")))
(global-set-key "\M-9" (lambda () (interactive) (insert "]")))
(global-set-key "\M-9" (lambda () (interactive) (insert "]")))
;;---Aggiunge il TIMESTAMP quando chiudo uno statemet TODO
(setq org-log-done 'time)
;;----fa aggiungere una nota di testo quando si chiude un TODO
(setq org-log-done 'note)
;;--setta dei tasti comodi da utilizzare in emacs
(global-set-key (kbd "C-c l") #'org-store-link)
(global-set-key (kbd "C-c a") #'org-agenda)
(global-set-key (kbd "C-c c") #'org-capture)
;;--- azioni applicate ai TODO
(setq org-todo-keywords
'((sequence "TODO" "FEEDBACK" "VERIFY" "|" "DONE" "DELEGATED")))
(custom-set-variables
;;custom-set-variables was added by Custom.
;;If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
;; '(package-selected-packages '(org-contacts frame-tabs ebdb)))
::(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
;;)
;;-----apre emacs-org mode in modalità Agenda
(org-agenda-list)
(delete-other-windows)
In a way that I can reuse org mode again
I really don’t find what’s goes bad (I don’t know lisp)
Really thank you
Renato
> Il giorno 29 ott 2022, alle ore 19:46, <tomas@tuxteam.de> <tomas@tuxteam.de> ha scritto:
>
> ;;;;;;Org mode configuration
> ;; Enable Org mode
> (require ‘org)
[-- Attachment #2: Type: text/html, Size: 30311 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Init.el
2022-10-29 19:08 ` Init.el Renato Pontefice
@ 2022-10-29 19:36 ` tomas
2022-10-29 22:16 ` Init.el Eduardo Ochs
1 sibling, 0 replies; 10+ messages in thread
From: tomas @ 2022-10-29 19:36 UTC (permalink / raw)
To: Renato Pontefice; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 4731 bytes --]
On Sat, Oct 29, 2022 at 09:08:08PM +0200, Renato Pontefice wrote:
> I’m sorry, but I’m in a big big confusion…I regreat but I’m unable to correct the prob the is originated to my init.el and the conclusion is that I cannot use emac.
> I ask if you can correct my init.el (that I post)
OK, below is your file, each line preceded by >, as is usual
in quoting mails. My comments are mixed in-between, I hope
this is readable for you:
> ;; -ss*- mode: elisp -*-
>
>
> ;;--setta il formato della data diversamente ------
> ;;(setq-default org-display-custom-times t)
> (setq org-time-stamp-custom-formats '("<%a %d %m %Y>" . "<%a %d %m %Y %H:%M>"))
>
> ;;----- comandi per gestire la grandezza della finestraprincipale di emacs -----
> (setq initial-frame-alist
> (append '((width . 200) (height . 400) (top 45) (left 45) ())
> initial-frame-alist))
>
> ;;-----------------------(add-to-list 'default-frame-alist '(height . 24))
> (add-to-list 'default-frame-alist '(width . 80))
>
> ;;------------ fà partire in AGENDA la settimana dal giorno 1---
> (setq calendar-week-start-day 1)
>
> ;;---settaggi carattere e dimensione di default del carattere--
> (set-face-attribute 'default nil :font "Andale Mono" :height 160 )
>
> ;; Disable the splash screen (to enable it agin, replace the t with 0)
> (setq inhibit-splash-screen t)
>
> ;; Enable transient mark mode
> (transient-mark-mode 1)
>
> ;;;;;;Org mode configuration
> Enable Org mode
This "Enable Org mode" has to be preceded by a semicolon,
like so:
;; Enable Org mode
(we had this one already)
> (require 'org)
This one is actually unnecessary, because it is done again a couple
of lines below. But it should be harmless.
>
> ;; Make Org mode work with files ending in .org
> (add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
> The above is the default in recent emacsen
This one should be commented out, like the "Enable..." above:
;; The above is...
> (require 'org)
> (setq org-log-done t)
>
> ;; set maximum indentation for description lists
> (setq org-list-description-max-indent 5)
>
> ;; prevent demoting heading also shifting text inside sections
> (setq org-adapt-indentation nil)
>
> ;;-------- determina le sequenze di stato al TODO
> (setq org-todo-keywords
> '((sequence "TODO" "IN-PROGRESS" "WAITING" "DONE")))
>
> ;;-------------------------- file utilizzati per TODO list in Agenda
> (setq org-agenda-files '( "~/org/agenda/"
> ;; "~/org/agenda/amorc.org <http://amorc.org/>"
> ;; "~/org/agenda/amorc.org <http://amorc.org/>"
> ;; "~/org/agenda/renato.org <http://renato.org/>"
> ))
> ;; mappa alcuni tasti per ottenere le parentesi graffe e quadre
> (global-set-key "\M-(" (lambda () (interactive) (insert "{")))
> (global-set-key "\M-)" (lambda () (interactive) (insert "}")))
> (global-set-key "\M-7" (lambda () (interactive) (insert "#")))
> (global-set-key "\M-8" (lambda () (interactive) (insert "[")))
> (global-set-key "\M-9" (lambda () (interactive) (insert "]")))
>
> (global-set-key "\M-9" (lambda () (interactive) (insert "]")))
>
> ;;---Aggiunge il TIMESTAMP quando chiudo uno statemet TODO
> (setq org-log-done 'time)
>
> ;;----fa aggiungere una nota di testo quando si chiude un TODO
> (setq org-log-done 'note)
>
> ;;--setta dei tasti comodi da utilizzare in emacs
> (global-set-key (kbd "C-c l") #'org-store-link)
> (global-set-key (kbd "C-c a") #'org-agenda)
> (global-set-key (kbd "C-c c") #'org-capture)
>
> ;;--- azioni applicate ai TODO
> (setq org-todo-keywords
> '((sequence "TODO" "FEEDBACK" "VERIFY" "|" "DONE" "DELEGATED")))
> (custom-set-variables
The above should be commented out, since the rest of the expression
is commented out, too. Otherwise you get unbalanced parentheses.
Change the above line to this:
;; (custom-set-variables
> ;;custom-set-variables was added by Custom.
> ;;If you edit it by hand, you could mess it up, so be careful.
> ;; Your init file should contain only one such instance.
> ;; If there is more than one, they won't work right.
> ;; '(package-selected-packages '(org-contacts frame-tabs ebdb)))
> ::(custom-set-faces
> ;; custom-set-faces was added by Custom.
> ;; If you edit it by hand, you could mess it up, so be careful.
> ;; Your init file should contain only one such instance.
> ;; If there is more than one, they won't work right.
> ;;)
> ;;-----apre emacs-org mode in modalità Agenda
> (org-agenda-list)
> (delete-other-windows)
With these changes the file parses successfully in "my" Emacs.
Hope that helps
--
tomás
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Init.el
2022-10-29 19:08 ` Init.el Renato Pontefice
2022-10-29 19:36 ` Init.el tomas
@ 2022-10-29 22:16 ` Eduardo Ochs
1 sibling, 0 replies; 10+ messages in thread
From: Eduardo Ochs @ 2022-10-29 22:16 UTC (permalink / raw)
To: Renato Pontefice; +Cc: emacs-orgmode
On Sat, 29 Oct 2022 at 16:08, Renato Pontefice
<renato.pontefice@gmail.com> wrote:
> (...)
Hi Renato,
I've uploaded a version with some fixes of your init.el to:
https://0x0.st/oYcy.txt
I just added comment signs at the beginning of some lines, and I used
TAB in most lines to make Emacs indent - i.e., position - them
correctly. Here is a screenshot of how my fixed version of your
init.el looks in Emacs with the colors that I use:
https://i.ibb.co/4J2T6VQ/sshot.png
Note that all comments appear in brown.
My favorite elisp tutorial is the second link below:
http://angg.twu.net/eev-intros/find-eev-quick-intro.html#2
http://angg.twu.net/eev-intros/find-elisp-intro.html
Cheers,
Eduardo Ochs
http://angg.twu.net/eepitch.html
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2022-10-29 22:18 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-29 16:29 Position 972 Renato Pontefice
2022-10-29 17:46 ` tomas
2022-10-29 18:04 ` Renato Pontefice
2022-10-29 18:29 ` Juan Manuel Macías
2022-10-29 18:42 ` tomas
2022-10-29 19:08 ` Init.el Renato Pontefice
2022-10-29 19:36 ` Init.el tomas
2022-10-29 22:16 ` Init.el Eduardo Ochs
2022-10-29 18:16 ` Position 972 Juan Manuel Macías
2022-10-29 18:44 ` tomas
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.