Fixed bugs with the initialization
Getting a number of warnings and startup errors, so I moved a couple of features earlier in the boot process and directly into the `init.el` file (see the initialization). Also, I'm not using the `beep` feature just yet.
This commit is contained in:
parent
dee00af73b
commit
47f1162d28
4 changed files with 21 additions and 19 deletions
|
@ -61,20 +61,6 @@ And some Mac-specific settings:
|
|||
(add-to-list 'default-frame-alist '(ns-transparent-titlebar . t))
|
||||
(add-to-list 'default-frame-alist '(ns-appearance . dark)))
|
||||
#+END_SRC
|
||||
|
||||
Finally, we need to make sure that the =/usr/local/bin= path is available to Emacs. Normally, we get this value from =PATH= environment variable, but I have one Emacs installation that refuses to, so... here we are.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(add-to-list 'exec-path "/usr/local/bin/")
|
||||
#+END_SRC
|
||||
** Customization Section
|
||||
|
||||
While I would rather program my configurations, sometimes the Emacs menu system is “good enough”, but I want it in its own file:
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
|
||||
(when (file-exists-p custom-file)
|
||||
(load custom-file))
|
||||
#+END_SRC
|
||||
* Support Packages
|
||||
** Piper
|
||||
|
||||
|
@ -330,11 +316,12 @@ I'm not trying an experiment where specially-placed function keys on my fancy er
|
|||
:global-prefix "<f13>"))
|
||||
#+END_SRC
|
||||
*** Top-Level Operations
|
||||
Let's try this out with
|
||||
Let's try this general "space" prefix by defining some top-level operations, including hitting ~space~ twice brings up the =M-x= collection of functions:
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(ha-leader
|
||||
"SPC" '("M-x" . execute-extended-command)
|
||||
"." '("repeat" . repeat)
|
||||
"!" 'shell-command
|
||||
"X" 'org-capture
|
||||
"L" 'org-store-link
|
||||
"RET" 'bookmark-jump
|
||||
|
|
|
@ -185,7 +185,7 @@ Emacs have an internal rep of a time.
|
|||
(defun get-date-time (date)
|
||||
"Many functions can't deal with dates as string, so this will
|
||||
parse DATE if it is a string, or return the value given otherwise."
|
||||
(if (and data (stringp date))
|
||||
(if (and date (stringp date))
|
||||
(->> date ; Shame that encode-time
|
||||
parse-time-string ; can't take a string, as
|
||||
(-take 6) ; this seems excessive...
|
||||
|
|
|
@ -39,9 +39,11 @@ Farm off commands into /virtual environments/:
|
|||
** Function Call Notifications
|
||||
As I've mentioned [[http://www.howardism.org/Technical/Emacs/beep-for-emacs.html][on my website]], I've created a [[file:~/website/Technical/Emacs/beep-for-emacs.org][beep function]] that notifies when long running processes complete.
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package beep
|
||||
:straight nil)
|
||||
#+BEGIN_SRC emacs-lisp :tangle no
|
||||
(use-package alert)
|
||||
|
||||
(use-package beep
|
||||
:straight nil)
|
||||
#+END_SRC
|
||||
While that code /advices/ the publishing and compile commands, I may want to add more.
|
||||
** iEdit
|
||||
|
|
13
initialize
13
initialize
|
@ -20,6 +20,19 @@ cat > $HAMACS_DEST/init.el <<EOF
|
|||
;; We'll be using straight. So, we don't want duplicated package loading:
|
||||
(setq package-enable-at-startup nil)
|
||||
|
||||
;; While I would rather program my configurations, sometimes the Emacs
|
||||
;; menu system is “good enough”, but I want it in its own file:
|
||||
|
||||
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
|
||||
(when (file-exists-p custom-file)
|
||||
(load custom-file))
|
||||
|
||||
;; While this path should come from the shell, there seems to be a
|
||||
;; condition where I need to set this so that Emacs can pull our my
|
||||
;; compiled files.
|
||||
|
||||
(add-to-list 'exec-path "/usr/local/bin/")
|
||||
|
||||
(defvar hamacs-source-dir "$HAMACS_DIR" "Where we be.")
|
||||
|
||||
;; Let's rock:
|
||||
|
|
Loading…
Reference in a new issue