Some file managers provide a shortcut to quickly embed some terminal that’s initialized with the current directory as cwd. Wouldn’t that be cool to have in emacs? For example, you edit some file, and then you want to quickly commit it. Using the code below, you can do that like this: Edit the file and [...]
Posts Tagged ‘Emacs’
Integrating Emacs’ org-mode with the Awesome window manager
Posted: March 4, 2009 in awesome, Emacs, GNU/LinuxTags: awesome, Emacs, org-mode
I’ve switched to another tiling window manager called awesome and it’s really like its name suggests. It’s more a window manager framework that can be programmed in lua to create a window manager that does exactly what you want it to do. Awesome has a lua library called naughty for displaying notifications. Now my idea [...]
Calling org-remember from inside conkeror
Posted: November 14, 2008 in Applications, EmacsTags: Add new tag, conkeror, Emacs, org, org-mode, org-remember, remember
I use Carsten Dominik’s great emacs package org-mode for project planning, appointments and TODOs (org-mode homepage). One cool feature is that it integrates nicely with the remember package. So when an idea comes into my mind I need to remember for later, I hit M-x org-remember RET which presents me a buffer with a custom [...]
Re-open read-only files as root automagically
Posted: August 20, 2008 in Emacs, GNU/LinuxTags: Emacs, TRAMP
I have my emacs running as server and two small wrapper scripts ec and et which connect to it with emacsclient (either creating a new frame or opening a terminal frame). Because I want to do all my system administration (editing files in /etc/) with emacs and don’t want to start another emacs instance as [...]
Some calendar and org-mode integration stuff
Posted: July 3, 2008 in EmacsTags: calendar, Emacs, org-mode
The following code binds RET in calendar mode to a function that opens an org agenda buffer for that day (or better that week). (defun th-calendar-open-agenda () (interactive) (let* ((calendar-date (or ;; the date at point in the calendar buffer (calendar-cursor-to-date) ;; if there’s none, use the curren date (calendar-current-date))) (day (time-to-days (encode-time 1 1 [...]