Build emacs 25 rpm for redhat / centos 7

This is for the console only (no graphical xwindows) version. Installs into /opt/emacs253 so can run side-by-side with system emacs. # Download emacs tarball & untar ./configure –prefix=/opt/emacs253 –with-gif=no –with-tiff=no –with-x-toolkit=no \ –with-xpm=no –with-jpeg=no –with-png=no # install any dependencies & build make make DESTDIR=/tmp/emacs install # Install fpm (gem install fpm) to build package fpm …

Continue reading ‘Build emacs 25 rpm for redhat / centos 7’ »

Another useful emacs package: crux

Contains various helper functions including crux-duplicate-and-comment-current-line-or-region for when you want to rework a line of code but keep the original. I’ve added these shortcuts: ;; crux (global-set-key (kbd “C-c I”) #’crux-find-user-init-file) (global-set-key (kbd “C-c r”) #’crux-rename-file-and-buffer) (global-set-key (kbd “C-c d”) #’crux-duplicate-current-line-or-region) (global-set-key (kbd “C-c M-d”) #’crux-duplicate-and-comment-current-line-or-region) (global-set-key (kbd “C-c n”) #’crux-cleanup-buffer-or-region)

emacs tip of the week #3: ido-switch-buffer

Hopefully you are already using ido or something similar to enhance emacs tab completion. I only use ido-switch-buffer ((ido-mode ‘buffer) in .emacs) as I dislike ido-find-file. What I don’t like is accidentally typing \C-x\C-b for buffer-menu-other-window (or whatever it is) when I meant \C-x b. So I put this in .emacs: (global-set-key “\C-x\C-b” ‘ido-switch-buffer)