all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Try to modularize the configuration of Emacs.
@ 2021-07-07  7:25 Hongyi Zhao
  2021-07-13 12:34 ` Emanuel Berg via Users list for the GNU Emacs text editor
  0 siblings, 1 reply; 2+ messages in thread
From: Hongyi Zhao @ 2021-07-07  7:25 UTC (permalink / raw)
  To: help-gnu-emacs

I'm currently trying to modularize my configuration of Emacs according
to the poplular doo-emacs's layout, say, for different languages, with
the following file tree structure:

~/.emacs.d/modules/lang/latex
~/.emacs.d/modules/lang/python
[...]

In my `~/.emacs.d/init.el', I want to load/apply the corresponding
language's configuration when I open the specific source file in
Emacs. How to achieve this purpose?

Regards
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
NO. 552 North Gangtie Road, Xingtai, China



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Try to modularize the configuration of Emacs.
  2021-07-07  7:25 Try to modularize the configuration of Emacs Hongyi Zhao
@ 2021-07-13 12:34 ` Emanuel Berg via Users list for the GNU Emacs text editor
  0 siblings, 0 replies; 2+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-07-13 12:34 UTC (permalink / raw)
  To: help-gnu-emacs

Hongyi Zhao wrote:

> I'm currently trying to modularize my configuration of Emacs
> according to the poplular doo-emacs's layout, say, for
> different languages, with the following file tree structure:
>
> ~/.emacs.d/modules/lang/latex
> ~/.emacs.d/modules/lang/python
> [...]
>
> In my `~/.emacs.d/init.el', I want to load/apply the
> corresponding language's configuration when I open the
> specific source file in Emacs. How to achieve this purpose?

Compile, `push' the paths onto `load-path', then `load-file'
the .elc files.

-- 
underground experts united
https://dataswamp.org/~incal




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-13 12:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-07  7:25 Try to modularize the configuration of Emacs Hongyi Zhao
2021-07-13 12:34 ` Emanuel Berg via Users list for the GNU Emacs text editor

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.