- 1 year ago
Controlling EMACS Org-Mode directory choices
To control the directory choices in Emacs Org-Mode, you can customize the org-directory
variable to specify the default directory for Org files. Here's how you can do it:
Open your Emacs configuration file. It is usually located at
~/.emacs
or~/.emacs.d/init.el
.Add the following line to set the
org-directory
variable to your desired directory:emacs(setq org-directory "~/path/to/org-files/")
Replace
"~/path/to/org-files/"
with the actual directory path where you want your Org files to be stored.Save the configuration file and restart Emacs.
By customizing the org-directory
variable, you set the default directory for Org files. When creating or opening Org files, Emacs Org-Mode will use the specified directory as the default location.
Additionally, you can use the org-agenda-files
variable to specify a list of directories and files where your Org agenda files are located. Here's an example:
emacs(setq org-agenda-files '("~/path/to/org-files/directory1/" "~/path/to/org-files/directory2/file.org"))
Replace the paths and file names with your own directory and file paths.
By setting the org-agenda-files
variable, you specify the locations from which Emacs Org-Mode should gather agenda items.
Remember to save your configuration changes and restart Emacs for the changes to take effect.