Recently, I found myself needing a solution for tracking issues and comments in source code during a review. Org-mode makes this task much better and easier overall.
First, let me explain how it is better. During a review, most comments focus on issues on particular line numbers. This means that the code needs must have line numbers displayed. That way, everyone can be clear about the particular line for a given issue. In emacs, this is easily done with linum-mode. This completes the first requirements of being able to view the code.
Setup
Now, a note-taker in the meeting faces the issue of tracking all of the comments and issues given by the reviewers. This can be a tedious task. First, get the line with … Read More »
On windows, many people use the built-in server and emacsclientw to make startup faster. The basics for this are discussed
here. I have a slightly modified version that closes a buffer opened through the server mode. I often open up code through emacsclientw, edit, save then close. The following code helps make this a more automatic process and give the feel of opening the editor, editing and then closing through normal keystrokes.
(defun bnb/exit ()
(interactive)
; Check for a server-buffer before closing the server-buffer
(if server-clients
(server-edit))
(make-frame-invisible nil t))
(global-set-key (kbd "C-x C-c") ‘bnb/exit)
While that code is great, it does not stop me from clicking the ‘X’ to close emacs. To ensure that this does not kill emacs, I advise the kill-emacs function. The advice …
Read More »
Getting starting using emacs