Tags » Emacs

Emacs: Show modified buffers in tabbar mode

Option 1: Concatenating “*” to buffer name to indicate modification in tabbar mode
(defadvice tabbar-buffer-tab-label (after fixup_tab_label_space_and_flag activate)
  (setq ad-return-value
    (if (buffer-modified-p (tabbar-tab-value tab))
      (concat "" (concat ad-return-value "*"))
      (concat "" (concat ad-return-value "")))))

(defun on-saving-buffer ()
  (tabbar-set-template tabbar-current-tabset nil)
(defun on-modifying-buffer ()
  (set-buffer-modified-p (buffer-modified-p))
  (tabbar-set-template tabbar-current-tabset nil)
(defun after-modifying-buffer (begin end length)
  (set-buffer-modified-p (buffer-modified-p))
  (tabbar-set-template tabbar-current-tabset nil)
(add-hook 'after-save-hook 'on-saving-buffer)
(add-hook 'first-change-hook 'on-modifying-buffer)
… 77 more words

Emacs DOM Traversal

I’ve been doing a bit of web scraping with Emacs lately, and I haven’t been totally satisfied with how my dom.el library worked.

But on Friday I was fiddling around with some jQuery stuff, and I noticed how handy it was that jQuery functions that dealt with a single node (like .attr()) could be fed a list of jQuery objects.  251 more words


Source Code Digging: Emacs-Org-Babel


When we call `C-c C-c` inside a source code block, the function `org-ctrl-c-ctrl-c` will be invoked. The function is content-aware and does different things depending on the context. 1,648 more words


Journal #17: Mail from Emacs - Part #1

Whisper: Yeah, this is probably the most crazy thing I’ve ever done (with emacs, sure).


I have a couple of e-mail accounts out there; this is inevitable nowadays. 661 more words

Sem Categoria

Emacs: No More of My Own Code for PHP Mode

My apologies for the quiet month, as I’ve plans weighing on my mind. In the past I have asked for another Emacs Lisp developer to hopefully step up and offer to maintain… 146 more words

Programming Languages

Emacs 4 Developers

“Emacs, thanks to major and minor modes, can be transformed into a powerful specific development environment.

According to the kind of files you are editing (or a command you type), it can change and give you specific features that fit the need of a programming language (or a task like debugging, launching unit tests, …” 6 more words