* User setup for emacs
@ 2021-10-08 15:30 tolugboji via Users list for the GNU Emacs text editor
2021-10-08 16:16 ` tolugboji
2021-10-10 18:00 ` Eduardo Ochs
0 siblings, 2 replies; 26+ messages in thread
From: tolugboji via Users list for the GNU Emacs text editor @ 2021-10-08 15:30 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org
I have my own setup for emacs. I want to have a .emacs that links with my settings by calling typex.el
located in
/home/tolu/Opstk/bin/typex/typex-1.0/typex.el
What do I have to do?
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: User setup for emacs
2021-10-08 15:30 User setup for emacs tolugboji via Users list for the GNU Emacs text editor
@ 2021-10-08 16:16 ` tolugboji
2021-10-09 10:03 ` tolugboji
2021-10-10 18:00 ` Eduardo Ochs
1 sibling, 1 reply; 26+ messages in thread
From: tolugboji @ 2021-10-08 16:16 UTC (permalink / raw)
To: tolugboji; +Cc: help-gnu-emacs@gnu.org
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Friday, October 8th, 2021 at 3:30 PM, tolugboji via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> wrote:
> I have my own setup for emacs. I want to have a .emacs that links with my settings by calling typex.el
>
> located in
>
> /home/tolu/Opstk/bin/typex/typex-1.0/typex.el
>
> What do I have to do?
I have done this
(add-to-list 'load-path "/home/tolu/Opstk/bin/gadin-1.0/typex/")
(load "typex")
^ permalink raw reply [flat|nested] 26+ messages in thread
* User setup for emacs
2021-10-08 16:16 ` tolugboji
@ 2021-10-09 10:03 ` tolugboji
2021-10-10 14:19 ` Emanuel Berg via Users list for the GNU Emacs text editor
0 siblings, 1 reply; 26+ messages in thread
From: tolugboji @ 2021-10-09 10:03 UTC (permalink / raw)
To: tolugboji; +Cc: help-gnu-emacs@gnu.org
What does a typical .emacs look like?
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Friday, October 8th, 2021 at 4:16 PM, tolugboji <tolugboji@protonmail.com> wrote:
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
>
> On Friday, October 8th, 2021 at 3:30 PM, tolugboji via Users list for the GNU Emacs text editor help-gnu-emacs@gnu.org wrote:
>
> > I have my own setup for emacs. I want to have a .emacs that links with my settings by calling typex.el
> >
> > located in
> >
> > /home/tolu/Opstk/bin/typex/typex-1.0/typex.el
> >
> > What do I have to do?
>
> I have done this
>
> (add-to-list 'load-path "/home/tolu/Opstk/bin/gadin-1.0/typex/")
>
> (load "typex")
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: User setup for emacs
2021-10-09 10:03 ` tolugboji
@ 2021-10-10 14:19 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-10-10 14:33 ` tolugboji
0 siblings, 1 reply; 26+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-10-10 14:19 UTC (permalink / raw)
To: help-gnu-emacs
tolugboji wrote:
> What does a typical .emacs look like?
A lot of `setq' for settings/options:
(setq auto-save-no-message nil)
(setq auto-save-list-file-prefix nil)
(setq make-backup-files nil)
;; ...
But if you have a file somewhere and want to keep it like that
there is no harm `load' or `load-file'ing it from ~/.emacs ...
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 26+ messages in thread
* User setup for emacs
2021-10-10 14:19 ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2021-10-10 14:33 ` tolugboji
2021-10-10 15:41 ` Emanuel Berg via Users list for the GNU Emacs text editor
0 siblings, 1 reply; 26+ messages in thread
From: tolugboji @ 2021-10-10 14:33 UTC (permalink / raw)
To: Emanuel Berg; +Cc: help-gnu-emacs
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Sunday, October 10th, 2021 at 2:19 PM, Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> wrote:
> tolugboji wrote:
>
> > What does a typical .emacs look like?
>
> A lot of `setq' for settings/options: (setq auto-save-no-message nil) (setq auto-save-list-file-prefix nil) (setq make-backup-files nil) ;; ... But if you have a file somewhere and want to keep it like that there is no harm` load' or `load-file'ing it from ~/.emacs ...
Have had a look at this great article by Xah Lee.
http://ergoemacs.org/emacs/emacs_make_modern.html
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> underground experts united
>
> https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: User setup for emacs
2021-10-10 14:33 ` tolugboji
@ 2021-10-10 15:41 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-10-10 15:47 ` tolugboji
0 siblings, 1 reply; 26+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-10-10 15:41 UTC (permalink / raw)
To: help-gnu-emacs
tolugboji wrote:
> Have had a look at this great article by Xah Lee.
>
> http://ergoemacs.org/emacs/emacs_make_modern.html
DNC, 503 Service Unavailable
Your posts don't look good BTW ...
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 26+ messages in thread
* User setup for emacs
2021-10-10 15:41 ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2021-10-10 15:47 ` tolugboji
2021-10-10 16:45 ` Emanuel Berg via Users list for the GNU Emacs text editor
0 siblings, 1 reply; 26+ messages in thread
From: tolugboji @ 2021-10-10 15:47 UTC (permalink / raw)
To: Emanuel Berg; +Cc: help-gnu-emacs
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Sunday, October 10th, 2021 at 3:41 PM, Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> wrote:
> tolugboji wrote:
>
> > Have had a look at this great article by Xah Lee.
> >
> > http://ergoemacs.org/emacs/emacs_make_modern.html
>
> DNC, 503 Service Unavailable
>
> Your posts don't look good BTW ...
I work to improve them and for others to find useful information. I do not see that
emacs provides a .emacs dering installation.
The article claims that the latest way to include customisations is via ~/.emacs.d/init.el
rather than using ~/.emacs. Is this claim correct?
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: User setup for emacs
2021-10-10 15:47 ` tolugboji
@ 2021-10-10 16:45 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-10-10 17:11 ` tolugboji
0 siblings, 1 reply; 26+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-10-10 16:45 UTC (permalink / raw)
To: help-gnu-emacs
tolugboji wrote:
>> Your posts don't look good BTW ...
>
> I work to improve them and for others to find useful
> information. I do not see that emacs provides a .emacs
> dering installation.
It doesn't if you by installation mean the placing of binaries
etc in $PATH directories and such stuff ...
But I like it that way, I don't like when Emacs adds stuff to
my init files and I see no advantage of that, on the contrary
I'd keep that human/computer separation clean.
Also I have no idea why this "has to" be the way it is but
with this at least I don't have to see it
(setq custom-file "~/ooa/dork.elc")
I don't even use custom so why can't that be opted out
completely? Or can it? Apologies if so ...
> The article claims that the latest way to include
> customisations is via ~/.emacs.d/init.el rather than using
> ~/.emacs. Is this claim correct?
Well, to me the init files were just files, the only thing
setting .emacs apart is that Emacs by default looks for it,
i.e., looks for a file located in $HOME with that name.
But I don't know, maybe there is indeed a policy which is
wholly or in part enforced somehow with respect to specific
files ...
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 26+ messages in thread
* User setup for emacs
2021-10-10 16:45 ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2021-10-10 17:11 ` tolugboji
2021-10-11 0:04 ` Emanuel Berg via Users list for the GNU Emacs text editor
0 siblings, 1 reply; 26+ messages in thread
From: tolugboji @ 2021-10-10 17:11 UTC (permalink / raw)
To: Emanuel Berg; +Cc: help-gnu-emacs
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Sunday, October 10th, 2021 at 4:45 PM, Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> wrote:
> tolugboji wrote:
>
> > > Your posts don't look good BTW ...
> >
> > I work to improve them and for others to find useful
> >
> > information. I do not see that emacs provides a .emacs
> >
> > dering installation.
>
> It doesn't if you by installation mean the placing of binaries
>
> etc in $PATH directories and such stuff ...
>
> But I like it that way, I don't like when Emacs adds stuff to
>
> my init files and I see no advantage of that, on the contrary
>
> I'd keep that human/computer separation clean.
The problem I find is there is no guide on how to get emacs to access
the user customisation files. Perhaps there could be an init file with
the lines commented out, and then one can add the paths etc to the user
customisation.
> Also I have no idea why this "has to" be the way it is but
>
> with this at least I don't have to see it
>
> (setq custom-file "~/ooa/dork.elc")
>
> I don't even use custom so why can't that be opted out
>
> completely? Or can it? Apologies if so ...
>
> > The article claims that the latest way to include
> >
> > customisations is via ~/.emacs.d/init.el rather than using
> >
> > ~/.emacs. Is this claim correct?
>
> Well, to me the init files were just files, the only thing
>
> setting .emacs apart is that Emacs by default looks for it,
>
> i.e., looks for a file located in $HOME with that name.
>
> But I don't know, maybe there is indeed a policy which is
>
> wholly or in part enforced somehow with respect to specific
>
> files ...
>
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> underground experts united
>
> https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: User setup for emacs
2021-10-08 15:30 User setup for emacs tolugboji via Users list for the GNU Emacs text editor
2021-10-08 16:16 ` tolugboji
@ 2021-10-10 18:00 ` Eduardo Ochs
2021-10-10 18:14 ` tolugboji
2021-10-10 18:31 ` [External] : " Drew Adams
1 sibling, 2 replies; 26+ messages in thread
From: Eduardo Ochs @ 2021-10-10 18:00 UTC (permalink / raw)
To: tolugboji; +Cc: help-gnu-emacs@gnu.org
Hi Tolugboji,
the Emacs Wiki has some pages about init files:
https://www.emacswiki.org/emacs/InitFile
https://www.emacswiki.org/emacs/CategoryDotEmacs
My ~/.emacs is totally atypical but it is here:
http://angg.twu.net/.emacs
http://angg.twu.net/.emacs.html
I set custom-file to another file - ~/.emacs.custom - because I don't
understand customize well and I used to feel very scared everytime
that customize changed something in my ~/.emacs without showing me
what it was doing. The part of my ~/.emacs that sets this is:
(setq custom-file "~/.emacs.custom")
(load custom-file)
It is at:
http://angg.twu.net/.emacs.html#.emacs.custom
Have you tried rcirc? Its manual is here,
(info "(rcirc)Top")
https://www.gnu.org/software/emacs/manual/html_node/rcirc/index.html
and here is a link that explains IRC in more detail:
http://www.irchelp.org/faq/new2irc.html
You just need to run M-x rcirc, and then once you're connected you can
issue commands like "/nick tolug" and "/join #emacs".
Cheers,
Eduardo Ochs
http://angg.twu.net/#eev
On Fri, 8 Oct 2021 at 12:31, tolugboji via Users list for the GNU
Emacs text editor <help-gnu-emacs@gnu.org> wrote:
>
> I have my own setup for emacs. I want to have a .emacs that links with my settings by calling typex.el
> located in
>
> /home/tolu/Opstk/bin/typex/typex-1.0/typex.el
>
> What do I have to do?
^ permalink raw reply [flat|nested] 26+ messages in thread
* User setup for emacs
2021-10-10 18:00 ` Eduardo Ochs
@ 2021-10-10 18:14 ` tolugboji
2021-10-10 18:31 ` [External] : " Drew Adams
1 sibling, 0 replies; 26+ messages in thread
From: tolugboji @ 2021-10-10 18:14 UTC (permalink / raw)
To: Eduardo Ochs; +Cc: help-gnu-emacs@gnu.org
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Sunday, October 10th, 2021 at 6:00 PM, Eduardo Ochs <eduardoochs@gmail.com> wrote:
> Hi Tolugboji,
>
> the Emacs Wiki has some pages about init files:
>
> https://www.emacswiki.org/emacs/InitFile
>
> https://www.emacswiki.org/emacs/CategoryDotEmacs
>
> My ~/.emacs is totally atypical but it is here:
>
> http://angg.twu.net/.emacs
>
> http://angg.twu.net/.emacs.html
>
> I set custom-file to another file - ~/.emacs.custom - because I don't
>
> understand customize well and I used to feel very scared everytime
>
> that customize changed something in my ~/.emacs without showing me
>
> what it was doing.
Quite right. Had experienced that problem before. Emacs does something
and the next I load emacs, weird things happen. Can take time to figure out
what happened.
The part of my ~/.emacs that sets this is:
>
> (setq custom-file "~/.emacs.custom")
>
> (load custom-file)
>
> It is at:
>
> http://angg.twu.net/.emacs.html#.emacs.custom
>
> Have you tried rcirc? Its manual is here,
>
> (info "(rcirc)Top")
>
> https://www.gnu.org/software/emacs/manual/html_node/rcirc/index.html
>
> and here is a link that explains IRC in more detail:
>
> http://www.irchelp.org/faq/new2irc.html
>
> You just need to run M-x rcirc, and then once you're connected you can
>
> issue commands like "/nick tolug" and "/join #emacs".
>
> Cheers,
>
> Eduardo Ochs
Was not aware of rcirc, no.
> http://angg.twu.net/#eev
>
> On Fri, 8 Oct 2021 at 12:31, tolugboji via Users list for the GNU
>
> Emacs text editor help-gnu-emacs@gnu.org wrote:
>
> > I have my own setup for emacs. I want to have a .emacs that links with my settings by calling typex.el
> >
> > located in
> >
> > /home/tolu/Opstk/bin/typex/typex-1.0/typex.el
> >
> > What do I have to do?
^ permalink raw reply [flat|nested] 26+ messages in thread
* RE: [External] : Re: User setup for emacs
2021-10-10 18:00 ` Eduardo Ochs
2021-10-10 18:14 ` tolugboji
@ 2021-10-10 18:31 ` Drew Adams
2021-10-10 18:35 ` tolugboji
2021-10-10 23:59 ` [External] : " Emanuel Berg via Users list for the GNU Emacs text editor
1 sibling, 2 replies; 26+ messages in thread
From: Drew Adams @ 2021-10-10 18:31 UTC (permalink / raw)
To: Eduardo Ochs, tolugboji; +Cc: help-gnu-emacs@gnu.org
> I set custom-file to another file - ~/.emacs.custom - because I don't
> understand customize well and I used to feel very scared everytime
> that customize changed something in my ~/.emacs without showing me
> what it was doing. The part of my ~/.emacs that sets this is:
>
> (setq custom-file "~/.emacs.custom")
> (load custom-file)
IMHO, everyone should define `custom-file', and
thus keep Customize's maintenance of the code
it generates away from the code you write in
your init file. To me, this is common sense.
But I was unable to get Emacs to even recommend
using `custom-file', let alone programmatically
encourage (not quite enforce) its use.
^ permalink raw reply [flat|nested] 26+ messages in thread
* User setup for emacs
2021-10-10 18:31 ` [External] : " Drew Adams
@ 2021-10-10 18:35 ` tolugboji
2021-10-10 19:02 ` [External] : " Drew Adams
2021-10-10 23:59 ` [External] : " Emanuel Berg via Users list for the GNU Emacs text editor
1 sibling, 1 reply; 26+ messages in thread
From: tolugboji @ 2021-10-10 18:35 UTC (permalink / raw)
To: Drew Adams; +Cc: Eduardo Ochs, help-gnu-emacs@gnu.org
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Sunday, October 10th, 2021 at 6:31 PM, Drew Adams <drew.adams@oracle.com> wrote:
> > I set custom-file to another file - ~/.emacs.custom - because I don't
> >
> > understand customize well and I used to feel very scared everytime
> >
> > that customize changed something in my ~/.emacs without showing me
> >
> > what it was doing. The part of my ~/.emacs that sets this is:
> >
> > (setq custom-file "~/.emacs.custom")
> >
> > (load custom-file)
>
> IMHO, everyone should define `custom-file', and thus keep Customize's maintenance of the code it generates away from the code you write in your init file. To me, this is common sense. But I was unable to get Emacs to even recommend using` custom-file', let alone programmatically
>
> encourage (not quite enforce) its use.
Quite unfortunate. It takes a lot of convincing and changes very slow.
I would like to ask if the link to the user-customisation files should
be done from ~/.emacs.d/init.el.
Is the latest way to do so in ~/.emacs.d/init.el rather than from ~/.emacs?
^ permalink raw reply [flat|nested] 26+ messages in thread
* RE: [External] : User setup for emacs
2021-10-10 18:35 ` tolugboji
@ 2021-10-10 19:02 ` Drew Adams
2021-10-10 19:11 ` tolugboji
0 siblings, 1 reply; 26+ messages in thread
From: Drew Adams @ 2021-10-10 19:02 UTC (permalink / raw)
To: tolugboji; +Cc: help-gnu-emacs@gnu.org, Eduardo Ochs
> I would like to ask if the link to the user-customisation files should
> be done from ~/.emacs.d/init.el.
>
> Is the latest way to do so in ~/.emacs.d/init.el rather than from
> ~/.emacs?
You can load it from any file that you load,
any time.
So yes, you can load it from your init file
(or from any file that your init file loads).
The point at which you load it is up to you.
You might want/need some Customize settings
to be in effect before (or after) you do
some other things in your init file.
^ permalink raw reply [flat|nested] 26+ messages in thread
* User setup for emacs
2021-10-10 19:02 ` [External] : " Drew Adams
@ 2021-10-10 19:11 ` tolugboji
2021-10-11 0:02 ` Emanuel Berg via Users list for the GNU Emacs text editor
0 siblings, 1 reply; 26+ messages in thread
From: tolugboji @ 2021-10-10 19:11 UTC (permalink / raw)
To: Drew Adams; +Cc: help-gnu-emacs@gnu.org, Eduardo Ochs
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Sunday, October 10th, 2021 at 7:02 PM, Drew Adams <drew.adams@oracle.com> wrote:
> > I would like to ask if the link to the user-customisation files should
> >
> > be done from ~/.emacs.d/init.el.
> >
> > Is the latest way to do so in ~/.emacs.d/init.el rather than from
> >
> > ~/.emacs?
>
> You can load it from any file that you load,
>
> any time.
>
> So yes, you can load it from your init file
>
> (or from any file that your init file loads).
>
> The point at which you load it is up to you.
>
> You might want/need some Customize settings
>
> to be in effect before (or after) you do
>
> some other things in your init file.
Does emacs customarily use ~/.emacs.d/ ?
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [External] : Re: User setup for emacs
2021-10-10 18:31 ` [External] : " Drew Adams
2021-10-10 18:35 ` tolugboji
@ 2021-10-10 23:59 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-10-11 0:34 ` Drew Adams
1 sibling, 1 reply; 26+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-10-10 23:59 UTC (permalink / raw)
To: help-gnu-emacs
Drew Adams wrote:
>> I set custom-file to another file - ~/.emacs.custom -
>> because I don't understand customize well and I used to
>> feel very scared everytime that customize changed something
>> in my ~/.emacs without showing me what it was doing.
>> The part of my ~/.emacs that sets this is:
>>
>> (setq custom-file "~/.emacs.custom")
>> (load custom-file)
>
> IMHO, everyone should define `custom-file', and thus keep
> Customize's maintenance of the code it generates away from
> the code you write in your init file. To me, this is
> common sense.
>
> But I was unable to get Emacs to even recommend using
> `custom-file', let alone programmatically encourage (not
> quite enforce) its use.
Is there an option to disable custom altogether?
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: User setup for emacs
2021-10-10 19:11 ` tolugboji
@ 2021-10-11 0:02 ` Emanuel Berg via Users list for the GNU Emacs text editor
0 siblings, 0 replies; 26+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-10-11 0:02 UTC (permalink / raw)
To: help-gnu-emacs
tolugboji wrote:
> Does emacs customarily use ~/.emacs.d/ ?
Yes, and you can put your stuff, or some of it, there as well.
[M]ELPA packages end up there, and also tramp, abbrev_defs,
and more.
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: User setup for emacs
2021-10-10 17:11 ` tolugboji
@ 2021-10-11 0:04 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-10-11 1:23 ` tolugboji
0 siblings, 1 reply; 26+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-10-11 0:04 UTC (permalink / raw)
To: help-gnu-emacs
tolugboji wrote:
> The problem I find is there is no guide on how to get emacs
> to access the user customisation files. Perhaps there could
> be an init file with the lines commented out, and then one
> can add the paths etc to the user customisation.
But loading files in general and the Emacs init process is
described in the Emacs and/or Elisp manuals ...
If you don't like that, try the on-line help:
C-h f load-file RET
and so on.
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 26+ messages in thread
* RE: [External] : Re: User setup for emacs
2021-10-10 23:59 ` [External] : " Emanuel Berg via Users list for the GNU Emacs text editor
@ 2021-10-11 0:34 ` Drew Adams
2021-10-11 3:13 ` Emanuel Berg via Users list for the GNU Emacs text editor
0 siblings, 1 reply; 26+ messages in thread
From: Drew Adams @ 2021-10-11 0:34 UTC (permalink / raw)
To: Emanuel Berg; +Cc: 'Help-Gnu-Emacs (help-gnu-emacs@gnu.org)'
[-- Attachment #1: Type: text/plain, Size: 1269 bytes --]
> Is there an option to disable custom altogether?
No idea if I could answer your question, but what
do you mean by "disable custom"? What do you mean
by "custom"? What is it that you're really trying
to do or asking about?
Customize user options start with `custom'.
I see these, using completion:
custom-browse-only-groups
custom-browse-order-groups
custom-browse-sort-alphabetically
custom-buffer-done-kill
custom-buffer-indent
custom-buffer-order-groups
custom-buffer-sort-alphabetically
custom-buffer-style
custom-buffer-verbose-help
custom-define-hook
custom-enabled-themes
custom-face-default-form
custom-file
custom-group-tag-faces
custom-guess-doc-alist
custom-guess-name-alist
custom-magic-show
custom-magic-show-button
custom-magic-show-hidden
custom-menu-nesting
custom-menu-order-groups
custom-menu-sort-alphabetically
custom-mode-hook
custom-raised-buttons
custom-reset-button-menu
custom-safe-themes
custom-search-field
custom-theme-allow-multiple-selections
custom-theme-directory
custom-unlispify-menu-entries
custom-unlispify-remove-prefixes
custom-unlispify-tag-names
custom-variable-default-form
customize-customized-ignore
customize-unsaved-confirm-exits-flag
customize-unsaved-ignore
[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 13758 bytes --]
^ permalink raw reply [flat|nested] 26+ messages in thread
* User setup for emacs
2021-10-11 0:04 ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2021-10-11 1:23 ` tolugboji
2021-10-11 3:09 ` Emanuel Berg via Users list for the GNU Emacs text editor
0 siblings, 1 reply; 26+ messages in thread
From: tolugboji @ 2021-10-11 1:23 UTC (permalink / raw)
To: Emanuel Berg; +Cc: help-gnu-emacs
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, October 11th, 2021 at 12:04 AM, Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> wrote:
> tolugboji wrote:
>
> > The problem I find is there is no guide on how to get emacs
> >
> > to access the user customisation files. Perhaps there could
> >
> > be an init file with the lines commented out, and then one
> >
> > can add the paths etc to the user customisation.
>
> But loading files in general and the Emacs init process is
>
> described in the Emacs and/or Elisp manuals ...
>
> If you don't like that, try the on-line help:
>
> C-h f load-file RET
>
> and so on.
I was guided to some emacs wiki and read a good article by Xah Lee, which helped.
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: User setup for emacs
2021-10-11 1:23 ` tolugboji
@ 2021-10-11 3:09 ` Emanuel Berg via Users list for the GNU Emacs text editor
0 siblings, 0 replies; 26+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-10-11 3:09 UTC (permalink / raw)
To: help-gnu-emacs
tolugboji wrote:
>>> The problem I find is there is no guide on how to get
>>> emacs to access the user customisation files.
>>> Perhaps there could be an init file with the lines
>>> commented out, and then one can add the paths etc to the
>>> user customisation.
>>
>> But loading files in general and the Emacs init process is
>> described in the Emacs and/or Elisp manuals ... If you
>> don't like that, try the on-line help: C-h f load-file RET
>> and so on.
>
> I was guided to some emacs wiki and read a good article by
> Xah Lee, which helped.
?
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [External] : Re: User setup for emacs
2021-10-11 0:34 ` Drew Adams
@ 2021-10-11 3:13 ` Emanuel Berg via Users list for the GNU Emacs text editor
[not found] ` <SJ0PR10MB5488088380C0302344DA8E15F3B59@SJ0PR10MB5488.namprd10.prod.outlook.com>
0 siblings, 1 reply; 26+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-10-11 3:13 UTC (permalink / raw)
To: help-gnu-emacs
Drew Adams wrote:
>> Is there an option to disable custom altogether?
>
> No idea if I could answer your question, but what do you
> mean by "disable custom"? What do you mean by "custom"?
> What is it that you're really trying to do or asking about?
I don't want it to write options, not any options and not to
any file. Because I handle my own options.
So if there is an option to disable it, that's what
I would do.
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 26+ messages in thread
* RE: [External] : Re: User setup for emacs
[not found] ` <87r1cr1ql2.fsf@zoho.eu>
@ 2021-10-11 16:30 ` Drew Adams
2021-10-11 16:38 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-10-11 16:39 ` Emanuel Berg via Users list for the GNU Emacs text editor
0 siblings, 2 replies; 26+ messages in thread
From: Drew Adams @ 2021-10-11 16:30 UTC (permalink / raw)
To: Emanuel Berg; +Cc: 'Help-Gnu-Emacs (help-gnu-emacs@gnu.org)'
[-- Attachment #1: Type: text/plain, Size: 674 bytes --]
>> just don't use Customize - either its UI or its
>> functions (those that save settings).
>
> I never use the UI, as for the functions ... hm, okay, these
> are the hits a get in my Elisp on "custom". Do you
> anything fishy?
The functions that write to a file have both
`custom' and `save' in their names. But you
might invoke some other function that in turn
calls one of those. Here are those I see:
custom-face-save
custom-group-save
custom-reset-standard-save-and-update
custom-save-all
custom-save-faces
custom-save-variables
custom-theme-save
custom-variable-save
customize-push-and-save
customize-save-customized
customize-save-variable
[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 13978 bytes --]
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [External] : Re: User setup for emacs
2021-10-11 16:30 ` Drew Adams
@ 2021-10-11 16:38 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-10-11 16:39 ` Emanuel Berg via Users list for the GNU Emacs text editor
1 sibling, 0 replies; 26+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-10-11 16:38 UTC (permalink / raw)
To: help-gnu-emacs
Drew Adams wrote:
> The functions that write to a file have both `custom' and
> `save' in their names. But you might invoke some other
> function that in turn calls one of those.
Ah, right. That's true.
Well, how do you find that out? Is there a method for that?
I mean in general ...
> Here are those I see:
>
> custom-face-save
> custom-group-save
> custom-reset-standard-save-and-update
> custom-save-all
> custom-save-faces
> custom-save-variables
> custom-theme-save
> custom-variable-save
> customize-push-and-save
> customize-save-customized
> customize-save-variable
OK, well don't have none of that in my code is all I can
say ...
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [External] : Re: User setup for emacs
2021-10-11 16:30 ` Drew Adams
2021-10-11 16:38 ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2021-10-11 16:39 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-10-11 16:43 ` Emanuel Berg via Users list for the GNU Emacs text editor
1 sibling, 1 reply; 26+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-10-11 16:39 UTC (permalink / raw)
To: help-gnu-emacs
I wonder what this code is supposed to do?
;;; -*- lexical-binding: t -*-
;;;
;;; this file:
;;; http://user.it.uu.se/~embe8573/emacs-init/custom-vars.el
;;; https://dataswamp.org/~incal/emacs-init/custom-vars.el
(require 'cl-lib)
(require 'search-regexp-in-files) ; https://dataswamp.org/~incal/emacs-init/search-regexp-in-files.el
(defun echo-user-variable ()
(interactive)
(let ((var (variable-at-point t))) ; ANY-SYMBOL
(when (and (custom-variable-p var)
(get var 'custom-set) )
(message "user variable") )))
(defun find-custom-set-vars (&optional buffer)
(interactive)
(let ((bfr (or buffer (current-buffer)))
(out-bfr (get-buffer-create "*CustomSetVariables*"))
(hits 0) )
(with-current-buffer bfr
(save-excursion
(goto-char (point-min))
(while (re-search-forward "([[:space:]]*set[fq][[:space:]]+" nil t)
(cl-incf hits)
(let ((var (variable-at-point t)) ; ANY-SYMBOL
(line (line-number-at-pos)) )
(when (and (custom-variable-p var)
(get var 'custom-set) )
(with-current-buffer out-bfr
(insert
(format "%s, %s: %s\n" bfr line var))) )))))
(pop-to-buffer out-bfr)
hits))
(defun fcsv-check-all-elisp ()
(let*((conf-files (files-as-list "~/.emacs.d/emacs-init/**/*.el"))
(fs (cons user-init-file conf-files))
(hits 0) )
(dolist (f fs hits)
(cl-incf hits (find-custom-set-vars (find-file-noselect f))))))
;; (fcsv-check-all-elisp)
;; Result:
;;
;; .emacs, 39: show-paren-delay
;; erc-incal.el, 18: erc-user-full-name
;; erc-incal.el, 172: erc-header-line-format
;; mode-line.el, 8: column-number-mode
;; mode-line.el, 9: line-number-mode
;; spell.el, 10: ispell-program-name
;; w3m-tabs.el, 9: w3m-tab-width
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [External] : Re: User setup for emacs
2021-10-11 16:39 ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2021-10-11 16:43 ` Emanuel Berg via Users list for the GNU Emacs text editor
0 siblings, 0 replies; 26+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-10-11 16:43 UTC (permalink / raw)
To: help-gnu-emacs
> I wonder what this code is supposed to do?
And this, that ain't in Emacs?
;;; -*- lexical-binding: t -*-
;;;
;;; this file:
;;; http://user.it.uu.se/~embe8573/emacs-init/search-regexp-in-files.el
;; https://dataswamp.org/~incal/emacs-init/search-regexp-in-files.el
(require 'cl-lib) ; cl-set-exclusive-or
(defun files-as-list (file-regexp)
(split-string
(with-temp-buffer
(call-process-shell-command
(format "ls %s" file-regexp) nil t) ; no INFILE, temp BUFFER
(buffer-substring (point-min) (point-max)) )))
(defun find-file-goto-line (file line)
(interactive)
(find-file-other-window file)
(goto-char (point-min))
(forward-line (1- line))
(window-resize nil (- 2 (window-height)) nil t) )
(defun regexp-hits-find-hit ()
(interactive)
(beginning-of-line)
(let ((file (thing-at-point 'filename nil))) ; NO-PROPERTIES
(end-of-line)
(search-backward "(")
(forward-char 1)
(let ((window (selected-window))
(line (thing-at-point 'number nil)) )
(forward-line 1)
(find-file-goto-line file line)
(select-window window) )))
(defun set-regexp-hits-keys ()
(local-set-key "\r" #'regexp-hits-find-hit)
(local-set-key "i" #'previous-line)
(local-set-key "k" #'forward-line) )
(defun search-regexp-in-files (file-regexp regexp)
(let ((paths (files-as-list file-regexp))
(regexp-hits "*regexp-hits*")
(hits nil) )
(get-buffer-create regexp-hits)
(let ((buffers (buffer-list))) ; get list to see if we opened the file -
(with-current-buffer regexp-hits
(goto-char (point-max))
(insert "---\n")
(set-regexp-hits-keys) )
(dolist (p paths)
(let ((buffer (find-file p)) ; here -
(kill-later (cl-set-exclusive-or buffers (buffer-list))) ) ; by comparing
(with-current-buffer buffer
(save-excursion
(goto-char (point-min))
(while (re-search-forward regexp nil t) ; no BOUND, NOERROR
(setq hits t)
(let ((hit-line (line-number-at-pos))
(match (match-string-no-properties 0)) )
(with-current-buffer regexp-hits
(insert (format "%s [%s] (%s)\n" p match hit-line)) ))))
(when kill-later
(kill-buffer buffer) ))))
(if hits
(progn
(switch-to-buffer regexp-hits)
(set-buffer-modified-p nil)
(goto-char (point-min)) )
(message "no hits!") ))))
(when nil
;; find (- x x) - this is line 64
(search-regexp-in-files "~/.emacs.d/emacs-init/**/*.el" "(- \\(.*\\) \\1)")
;; find "kill" - should be some hits even for pacifists
(search-regexp-in-files "~/.emacs" "kill")
(search-regexp-in-files "~/.emacs.d/emacs-init/*.el" "kill")
;; find the construct (if a a b) if you want
;; to replace it with (or a b)
;; if it works, when applied to this file, it
;; should find the example above!
(search-regexp-in-files (buffer-file-name)
"([[:space:]\n]*if[[:space:]\n]+\\(.*\\)[[:space:]\n]+\\1[[:space:]\n]+\\(.*\\))" )
)
(provide 'search-regexp-in-files)
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 26+ messages in thread
end of thread, other threads:[~2021-10-11 16:43 UTC | newest]
Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-08 15:30 User setup for emacs tolugboji via Users list for the GNU Emacs text editor
2021-10-08 16:16 ` tolugboji
2021-10-09 10:03 ` tolugboji
2021-10-10 14:19 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-10-10 14:33 ` tolugboji
2021-10-10 15:41 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-10-10 15:47 ` tolugboji
2021-10-10 16:45 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-10-10 17:11 ` tolugboji
2021-10-11 0:04 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-10-11 1:23 ` tolugboji
2021-10-11 3:09 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-10-10 18:00 ` Eduardo Ochs
2021-10-10 18:14 ` tolugboji
2021-10-10 18:31 ` [External] : " Drew Adams
2021-10-10 18:35 ` tolugboji
2021-10-10 19:02 ` [External] : " Drew Adams
2021-10-10 19:11 ` tolugboji
2021-10-11 0:02 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-10-10 23:59 ` [External] : " Emanuel Berg via Users list for the GNU Emacs text editor
2021-10-11 0:34 ` Drew Adams
2021-10-11 3:13 ` Emanuel Berg via Users list for the GNU Emacs text editor
[not found] ` <SJ0PR10MB5488088380C0302344DA8E15F3B59@SJ0PR10MB5488.namprd10.prod.outlook.com>
[not found] ` <87r1cr1ql2.fsf@zoho.eu>
2021-10-11 16:30 ` Drew Adams
2021-10-11 16:38 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-10-11 16:39 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-10-11 16:43 ` Emanuel Berg via Users list for the GNU Emacs text editor
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).