emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: <tomas@tuxteam.de>
To: Renato Pontefice <renato.pontefice@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Init.el
Date: Sat, 29 Oct 2022 21:36:42 +0200	[thread overview]
Message-ID: <Y12AyjQ98DV7lMAr@tuxteam.de> (raw)
In-Reply-To: <6F183974-C1CB-41D0-919C-C8A6836A29AE@gmail.com>

[-- 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 --]

  reply	other threads:[~2022-10-29 19:37 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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     ` tomas [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y12AyjQ98DV7lMAr@tuxteam.de \
    --to=tomas@tuxteam.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=renato.pontefice@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).