Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
added 134 characters in body
Source Link
galex-713
  • 255
  • 3
  • 8

I heard it’s better to use Customize to define variables/settings instead of just some setqit’s better to use Customize to define variables/settings instead of just some setq inside .emacs.d… because it autoloads when loading packages, because it’s more consistent, more checked/restricted, better updated, etc. I heard the only case where it could be better not to use Customize is setting programmatically variables. Like depending upon context or other variables with functions, etc.

But is it really always the case or is there even with Customize some way of doing it? Especially, is there a way to define a variable within Customize, that would depend upon another? like org-agenda-files depending on org-directory ((setq org-agenda-files (concat org-directory "agenda.org")))? Because I’d like it to being updated wether I update org-directory. And I’d like for consistency being able to set everything within setq or Customize, and I don’t know how to do it programmatically within Customize.

EDIT : also, if that’s not possible, I’d like to know at least how to make setq acts after the definition of a variable by customize. To take again the previous example: org-directory get defined only when org is loaded, so I can’t define org-agenda-files before in my .emacs.d: what’s the proper solution? (eval-after-load 'org […])?

I heard it’s better to use Customize to define variables/settings instead of just some setq inside .emacs.d… because it autoloads when loading packages, because it’s more consistent, more checked/restricted, better updated, etc. I heard the only case where it could be better not to use Customize is setting programmatically variables. Like depending upon context or other variables with functions, etc.

But is it really always the case or is there even with Customize some way of doing it? Especially, is there a way to define a variable within Customize, that would depend upon another? like org-agenda-files depending on org-directory ((setq org-agenda-files (concat org-directory "agenda.org")))? Because I’d like it to being updated wether I update org-directory. And I’d like for consistency being able to set everything within setq or Customize, and I don’t know how to do it programmatically within Customize.

EDIT : also, if that’s not possible, I’d like to know at least how to make setq acts after the definition of a variable by customize. To take again the previous example: org-directory get defined only when org is loaded, so I can’t define org-agenda-files before in my .emacs.d: what’s the proper solution? (eval-after-load 'org […])?

I heard it’s better to use Customize to define variables/settings instead of just some setq inside .emacs.d… because it autoloads when loading packages, because it’s more consistent, more checked/restricted, better updated, etc. I heard the only case where it could be better not to use Customize is setting programmatically variables. Like depending upon context or other variables with functions, etc.

But is it really always the case or is there even with Customize some way of doing it? Especially, is there a way to define a variable within Customize, that would depend upon another? like org-agenda-files depending on org-directory ((setq org-agenda-files (concat org-directory "agenda.org")))? Because I’d like it to being updated wether I update org-directory. And I’d like for consistency being able to set everything within setq or Customize, and I don’t know how to do it programmatically within Customize.

EDIT : also, if that’s not possible, I’d like to know at least how to make setq acts after the definition of a variable by customize. To take again the previous example: org-directory get defined only when org is loaded, so I can’t define org-agenda-files before in my .emacs.d: what’s the proper solution? (eval-after-load 'org […])?

edited title
Link
galex-713
  • 255
  • 3
  • 8

How to make a Customize setting depend on another? or make a `setq` depend over a Customize setting?

added 352 characters in body
Source Link
galex-713
  • 255
  • 3
  • 8

I heard it’s better to use Customize to define variables/settings instead of just some setq inside .emacs.d… because it autoloads when loading packages, because it’s more consistent, more checked/restricted, better updated, etc. I heard the only case where it could be better not to use Customize is setting programmatically variables. Like depending upon context or other variables with functions, etc.

But is it really always the case or is there even with Customize some way of doing it? Especially, is there a way to define a variable within Customize, that would depend upon another? like org-agenda-files depending on org-directory ((setq org-agenda-files (concat org-directory "agenda.org")))? Because I’d like it to being updated wether I update org-directory. And I’d like for consistency being able to set everything within setq or Customize, and I don’t know how to do it programmatically within Customize.

EDIT : also, if that’s not possible, I’d like to know at least how to make setq acts after the definition of a variable by customize. To take again the previous example: org-directory get defined only when org is loaded, so I can’t define org-agenda-files before in my .emacs.d: what’s the proper solution? (eval-after-load 'org […])?

I heard it’s better to use Customize to define variables/settings instead of just some setq inside .emacs.d… because it autoloads when loading packages, because it’s more consistent, more checked/restricted, better updated, etc. I heard the only case where it could be better not to use Customize is setting programmatically variables. Like depending upon context or other variables with functions, etc.

But is it really always the case or is there even with Customize some way of doing it? Especially, is there a way to define a variable within Customize, that would depend upon another? like org-agenda-files depending on org-directory ((setq org-agenda-files (concat org-directory "agenda.org")))? Because I’d like it to being updated wether I update org-directory. And I’d like for consistency being able to set everything within setq or Customize, and I don’t know how to do it programmatically within Customize.

I heard it’s better to use Customize to define variables/settings instead of just some setq inside .emacs.d… because it autoloads when loading packages, because it’s more consistent, more checked/restricted, better updated, etc. I heard the only case where it could be better not to use Customize is setting programmatically variables. Like depending upon context or other variables with functions, etc.

But is it really always the case or is there even with Customize some way of doing it? Especially, is there a way to define a variable within Customize, that would depend upon another? like org-agenda-files depending on org-directory ((setq org-agenda-files (concat org-directory "agenda.org")))? Because I’d like it to being updated wether I update org-directory. And I’d like for consistency being able to set everything within setq or Customize, and I don’t know how to do it programmatically within Customize.

EDIT : also, if that’s not possible, I’d like to know at least how to make setq acts after the definition of a variable by customize. To take again the previous example: org-directory get defined only when org is loaded, so I can’t define org-agenda-files before in my .emacs.d: what’s the proper solution? (eval-after-load 'org […])?