My Emacs Setup

In January, I switched to the new Meh-Book Pro (typo intended).

Setting upwardly a novel laptop is difficult because at that topographic point are likewise many things to perish on runway of. Even so, rather than copying the the world of my previous laptop to the novel one, I decided to do the setup from scratch equally this would assist for software rejuvenation as well as getting rid of all the junk that accumulated on my laptop for 5 years.

(Side remark: A duo years ago, I heard from a conduct identify cloud computing proficient tell that datacenters also get together junk over time. He told me that i time during a renovation of a datacenter they discovered servers that are sitting at that topographic point without whatever purpose --that no i knows of--, as well as throw them out. He had likened the sense to getting rid of defunct materials when you lot migrate to a novel laptop.)

Anyways, I was stressed almost the task, precisely thence I remembered that past Murat has left me notes on how to setup the laptop. Fantastic!

I constitute out a duo things past-Murat had missed inward the instructions. I am noting them hither out of courtesy for future-Murat. I am paying it forward.

Install auctex for latex materials as well as ispell for the piece checker Emacs uses. brew install ispell --with-lang-en

Don't forget to "brew cask install" the following: slack, filezilla, adblock, tla-plus-toolbox

Add the "home directory" to finder. (Stupid MacOS.)

Disable bluetooth from waking upwardly the laptop to forestall the telephone headphone to connect to the sleeping laptop as well as wake it up. Duh!

Emacs setup

Most of my novel notes is almost the Emacs setup, where I spent the volume of my time.

I installed emacs using cask rather than from binary thence I larn to taste the ELPA package-manager back upwardly yesteryear typing "M-x package-show-package-list".

I had a work using the previous starter-kit I had as well as couldn't larn it to work. I searched as well as constitute kjhealy's kit highly recommended, thence I installed that one.

This starter-kit takes attention of everything as well as is slow to install. It sits inward my .emacs.d directory. I also do myusername.el in that folder to add together my customization.
(global-set-key (kbd "<f1>") 'org-timer-set-timer)
(global-set-key (kbd "<f2>") 'flyspell-auto-correct-word)
;; F3 shop macro
;; F4 apply macro
(global-set-key (kbd "<f5>") 'org-schedule)
(global-set-key (kbd "<f6>") 'org-deadline)
;; (global-set-key (kbd "<f7>") 'org-agenda-do-date-earlier) ;; instead purpose  M -
;; (global-set-key (kbd "<f8>") 'org-agenda-do-date-later) ;; instead purpose  M +
(global-set-key (kbd "<f7>") 'org-store-link)
(global-set-key (kbd "<f8>") 'org-insert-link)

(global-set-key (kbd "<f12>") 'org-agenda)


I install visual-fill-column, as well as add together this to myusername.el
;; develop business width to lxxx characters
;; outset do this!! M-x package-install visual-fill-column
(setq-default fill-column 80)
(global-visual-line-mode 1)
(global-visual-fill-column-mode 1)
(auto-fill-mode -1)
(remove-hook 'text-mode-hook #'turn-on-auto-fill)
;;shortcut for auto-fill manner on/off
(global-set-key (kbd "C-c w") 'auto-fill-mode)
;; visual-line-mode for treatment long lines
(add-hook 'text-mode-hook 'turn-on-visual-line-mode)
(add-hook 'text-mode-hook 'turn-on-visual-fill-column-mode)

Yes, I conduct maintain a lot of junk deoxyribonucleic acid inward that file.


I constitute that this starter kit uses the zenburn theme. It is overnice pastel colors, precisely I prefer a calorie-free background. To last able to charge other themes, I constitute that I demand to withdraw the background as well as foreground colors inward custom.el. Then  "M-x load-theme" plant for loading other themes. I purpose leuven and sometimes anti-zenburn as my light-background Emacs theme.

I know I tin opened upwardly dozens of buffers inward i Emacs windows, precisely I similar to perish on 3 Emacs windows opened upwardly for ameliorate organization:
  • one window is for org-agenda as well as related files to organize my life (for this I all the same purpose the zenburn subject equally that looks cool inward agenda mode)
  • the other ii windows are on enquiry projects (for these I purpose the leuven theme) 


I simplified my pomodoro setup equally well. I purpose <f1> to invoke org-timer-set-timer, as well as come inward how many minutes I desire the pomodoro for. I hooked a component to the org-timer-done, as well as telephone call upwardly applescript to vocalize a celebratory message when the timer expires. This follows from the practices recommended inward TinyHabits.
;;(defun my-org-timer-hook ()
;;  (sound-wav-play " /.emacs.d/Bell.wav"))
(defun my-org-timer-hook ()
  (do-applescript "say \"Well done!\""))

(add-hook 'org-timer-done-hook 'my-org-timer-hook)

;; (setq visible-bell nil)
(setq org-clock-sound t) ;; Standard Emacs beep; visible-bell if inward a higher identify commented

I develop the timer to 10 minutes most of the time, because that gets me started.  I tin perish on going amongst longer durations.

Related post: My Emacs Journey

0 Response to "My Emacs Setup"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel