projects
/
~bandali
/
configs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
279a98e
)
Use my initials, ab, for prefixing my functions and vars
author
Amin Bandali
<amin@aminb.org>
Sat, 21 Apr 2018 15:21:02 +0000
(11:21 -0400)
committer
Amin Bandali
<amin@aminb.org>
Sat, 21 Apr 2018 15:21:02 +0000
(11:21 -0400)
emacs/init.org
patch
|
blob
|
blame
|
history
diff --git
a/emacs/init.org
b/emacs/init.org
index
1e44cab
..
5f96e69
100644
(file)
--- a/
emacs/init.org
+++ b/
emacs/init.org
@@
-75,10
+75,10
@@
Measure and display startup time. Also, temporarily increase
collection frequency. Taken from [[https://github.com/dieggsy/dotfiles/tree/3d95bc08033920e077855caf545a975eba52d28d/emacs.d#startup-time][here]].
#+begin_src emacs-lisp
collection frequency. Taken from [[https://github.com/dieggsy/dotfiles/tree/3d95bc08033920e077855caf545a975eba52d28d/emacs.d#startup-time][here]].
#+begin_src emacs-lisp
-(defconst a
minb/
emacs-start-time (current-time))
-(defconst a
minb/
gc-cons-threshold gc-cons-threshold)
-(defconst a
minb/
gc-cons-percentage gc-cons-percentage)
-(defvar a
minb/
file-name-handler-alist file-name-handler-alist)
+(defconst a
b--
emacs-start-time (current-time))
+(defconst a
b--
gc-cons-threshold gc-cons-threshold)
+(defconst a
b--
gc-cons-percentage gc-cons-percentage)
+(defvar a
b--
file-name-handler-alist file-name-handler-alist)
(setq gc-cons-threshold 400000000
gc-cons-percentage 0.6
file-name-handler-alist nil
(setq gc-cons-threshold 400000000
gc-cons-percentage 0.6
file-name-handler-alist nil
@@
-92,15
+92,18
@@
Reset the variables back to default after init.
(add-hook
'after-init-hook
`(lambda ()
(add-hook
'after-init-hook
`(lambda ()
- (setq gc-cons-threshold a
minb/
gc-cons-threshold
- gc-cons-percentage a
minb/
gc-cons-percentage
- file-name-handler-alist a
minb/
file-name-handler-alist)
+ (setq gc-cons-threshold a
b--
gc-cons-threshold
+ gc-cons-percentage a
b--
gc-cons-percentage
+ file-name-handler-alist a
b--
file-name-handler-alist)
(let ((elapsed (float-time (time-subtract (current-time)
(let ((elapsed (float-time (time-subtract (current-time)
- a
minb/
emacs-start-time))))
+ a
b--
emacs-start-time))))
(message "Loading %s...done (%.3fs) [after-init]"
,load-file-name elapsed))))
#+end_src
(message "Loading %s...done (%.3fs) [after-init]"
,load-file-name elapsed))))
#+end_src
+Note that I'll be using my initials, =ab=, as a prefix for the
+variables and functions I define throughout my init file.
+
** Package management
*** =straight.el=
** Package management
*** =straight.el=
@@
-155,7
+158,7
@@
hacker.
*** =use-package=
#+begin_quote
*** =use-package=
#+begin_quote
-A use-package declaration for simplifying your .emacs
.
+A use-package declaration for simplifying your .emacs
#+end_quote
=use-package= is an awesome utility for managing and configuring
#+end_quote
=use-package= is an awesome utility for managing and configuring
@@
-171,7
+174,7
@@
performance. So let's install it using =striaght.el= and have it use
** No littering in =~/.emacs.d=
#+begin_quote
** No littering in =~/.emacs.d=
#+begin_quote
-Help keeping ~/.emacs.d clean
.
+Help keeping ~/.emacs.d clean
#+end_quote
By default, even for Emacs' built-in packages, the configuration files
#+end_quote
By default, even for Emacs' built-in packages, the configuration files