commit 6d42c56934f904423731c76da403de61b645ea7d
parent 7b0f48648ca1ce53166ac3f4d7b83ae7be593aca
Author: Cem Keylan <cem@ckyln.com>
Date: Sat, 14 Mar 2020 17:30:36 +0300
better variable management
Diffstat:
M | init.org | | | 44 | +++++++++++++++++++++++++++++--------------- |
1 file changed, 29 insertions(+), 15 deletions(-)
diff --git a/init.org b/init.org
@@ -124,9 +124,10 @@ usually found on Ubuntu based distros.
#+BEGIN_SRC emacs-lisp
(require 'package)
-(setq package-archives '(("elpa" . "https://elpa.gnu.org/packages/")))
-(add-to-list 'package-archives
- '("melpa" . "https://melpa.org/packages/"))
+(setq package-archives '(
+ ("elpa" . "https://elpa.gnu.org/packages/")
+ ("melpa" . "https://melpa.org/packages/")
+))
(package-initialize)
#+END_SRC
@@ -170,6 +171,7 @@ I use my diary on a Sync directory, so I can share between
computers.
#+BEGIN_SRC emacs-lisp
+(defvar diary-file)
(setq diary-file "~/Sync/diary")
#+END_SRC
** Starting the server
@@ -202,8 +204,10 @@ while I am using Emacs. Let's begin with the evil-mode itself.
(use-package evil
:ensure t
:init
- (setq evil-want-keybinding nil)
- (setq evil-want-C-i-jump nil)
+ (setq
+ evil-want-keybinding nil
+ evil-want-C-i-jump nil
+ )
:config
(evil-mode 1))
#+END_SRC
@@ -272,10 +276,15 @@ further.
(global-set-key (kbd "C-c a") 'org-agenda)
(global-set-key (kbd "C-c c") 'org-capture)
-(setq org-directory "~/.org/")
-(setq org-agenda-include-diary t)
+(defvar org-directory)
+(defvar org-agenda-include-diary)
+(defvar org-default-notes-file)
-(setq org-default-notes-file "~/.notes.org")
+(setq
+ org-directory "~/.org/"
+ org-agenda-include-diary t
+ org-default-notes-file "~/.notes.org"
+)
#+END_SRC
** Magit
@@ -437,8 +446,10 @@ For markdown, I want to have 4 spaces as an indentation.
#+BEGIN_SRC emacs-lisp
(defvar md-indent-tabs-mode)
(defvar md-tab-width)
-(setq md-indent-tabs-mode nil)
-(setq md-tab-width 4)
+(setq
+ md-indent-tabs-mode nil
+ md-tab-width 4
+)
#+END_SRC
** Shell
@@ -448,8 +459,10 @@ For shell, I want to have 4 spaces as an indentation.
#+BEGIN_SRC emacs-lisp
(defvar sh-indent-tabs-mode)
(defvar sh-tab-width)
-(setq sh-indent-tabs-mode nil)
-(setq sh-tab-width 4)
+(setq
+ sh-indent-tabs-mode nil
+ sh-tab-width 4
+)
#+END_SRC
** Python
@@ -524,9 +537,10 @@ I am setting the default browser from the BROWSER environment variable
so that I don't have to keep track of it in case I ever change my browser.
#+BEGIN_SRC emacs-lisp
-(setq browse-url-generic-program
- (executable-find (getenv "BROWSER"))
- browse-url-browser-function 'browse-url-generic)
+(setq
+ browse-url-generic-program (executable-find (getenv "BROWSER"))
+ browse-url-browser-function 'browse-url-generic
+)
#+END_SRC
* Notes
This is a section for notes to self and installation problems