Here is the solution to Emacs mastery (from someone who watches other people’s YouTube videos…):
Yet More Learning
Practice, More Practice…
Time to repeat.
Yet… More challenges:
Lots to learn
Huge number of options
Which way is best
Vast software selection
Lots of online sources, spread around
Keys to overcoming challenges
Pick one problem at a time, and work hard on it
Take time to enjoy the new power gained. Feel rewarded.
Choose the next option.
(if this helps) Document what you did.
The instructions provide clues, but don’t spell out, how to set up org2blog for multiple blogs. https://github.com/punchagan/org2blog
(setq org2blog/wp-blog-alist '(("wordpress" :url "http://username.wordpress.com/xmlrpc.php" :username "username" :default-title "Hello World" :default-categories ("org2blog" "emacs") :tags-as-categories nil) ("my-blog" :url "http://username.server.com/xmlrpc.php" :username "admin")))
But what if you don’t want to specify your username and password in this multi-site set-up?
The answer lies in expanding on the elisp provided.
(let (creds-stevedowe creds-warpuni creds-status) (add-to-list 'auth-sources "~/.netrc") (setq creds-stevedowe (auth-source-user-and-password "stevedowe.me")) (setq creds-warpuni (auth-source-user-and-password "warpuni.com")) (setq creds-status (auth-source-user-and-password "status.warphost.net")) (setq org2blog/wp-blog-alist `( ("stevedowe.me" :url "https://dowe.io/xmlrpc.php" :default-categories ("me" "process" "things" "world") :tags-as-categories nil :username ,(car creds-stevedowe) :password ,(cadr creds-stevedowe)) ("warpuni.com" :url "https://warpuni.com/xmlrpc.php" :default-categories ("Analytics","BioData","FreeSoftware","Internet","Mobile","News","Productivity","Security","Social" "Support") :tags-as-categories nil :username ,(car creds-warpuni) :password ,(cadr creds-warpuni)) ("status.warphost.net" :url "https://status.warphost.net/xmlrpc.php" :tags-as-categories nil :username ,(car creds-status) :password ,(cadr creds-status)))))
[ This is a legacy post. Some details may no longer be relevant to modern software implementations. ]
If it hasn’t been said enough times already, let it be said once more: Emacs and org-mode are quite probably the best way ever to organise your personal life.
Emacs, for starters
Emacs as a text editor is rock solid. If you have a computer where you type in text and which:
- is web based (e.g. a chromebook)
- has any kind of touch interface (a tablet, phone)
- is running a heavy GUI (graphical user interface)
.. then you are certain to observe a certain lag on input. It might be very slight, but it will likely be there. I know this to be the case for many devices out there, even those which purport to be “high-end”.
With Emacs, there seems to be a much more direct connection to the keyboard: you type, text appears. You type faster, text appears faster. In fact, text is capable of appearing much more quickly than you can possibly type. This makes blogging quick and painless.
org-mode, for main course
Life in Emacs simply came to be, through org-mode. Emacs itself is amazing; org-mode made organising data even better. A quick refresher:
- org-mode creates everything in plain text, for maximum portability between systems
- it is known as an “outline mode” enhancement for Emacs, meaning it helps to display semi-structured text effectively
- it allows for the creation of lists – of projects, tasks, notes, links … you name it, anything that can be represented in text
- it is portable, allowing for synchronisation with mobile devices
- using Emacs, it is powerful – allowing org-mode notes to interact with other aspects of Emacs
Org-mode also supports all sorts of fancy formatting and customisation, meaning text can look good and be easy to follow.
org2blog, for desert
What would all this power be for, unless blogging! 🙂
Actually, blogging is just one activity which benefits greatly from the power of org-mode, as org’s powerful and easy formatting options are seamlessly translated into HTML and published to a blog.
In my case, I’m using a WordPress site. I create a new post using the commands
I then type in my post and save it to a local file, using
and then post it to WordPress for subsequent tweaking, with
I can then add some final polish and check the format in WordPress before final publishing.
As a demo and an indication of speed, this blog post took only 5 minutes to write, post, edit and publish.
Quite simply, I am very happy to be back in Emacs-land.
There I was, thinking that the web-based task managers, to-do lists, etc
were “all that”. Well, ok, I do feel that some are pretty good, as you can tell from
my tag cloud on this blog. But nothing ever felt like it was native to
me, this keyboard and this computer.
I wanted to put tasks on a computer to make them easier to manage. Putting them on a web site didn’t do that, and I don’t think it ever
really will for me. So I’m back in the saddle with orgmode and boy, am I loving this again. It’s amazing how the keystrokes just come back to
Here’s my list of software in Emacs (at present):
- mu4e, for E-mail
- orgmode, for task/calendar management
— mobileorg, for portability
- weblogger, for blogging (duh)
For coding, I’m also using:
.. plus some other fontification and syntax colouring plugins.
Truly forgot what a joy it is to use this environment, although it does
take a little work setting up.
Minimalism & Debian
Less is more, as the saying goes.
While I love using Fedora in my daily work, sometimes when I want to relax I find using an alternative distribution is good therapy. Fedora is fabulous with its GNOME Shell finery, but occasionally I hanker for something simpler and more lightweight. It’s also good to see how the other half lives 🙂
So, I decided to put Debian on my netbook. With no GUI. Everything I do on it must be by the command line, including web research. Compared to Fedora, Debian‘s system requirements are practically non-existent, which is especially good if you want your system to still run nice and quick.
- Firstly, I had of course to grab the distribution. I’m not over-fussed about running cutting edge stuff on this machine. For me, the most important thing is a low-maintenance base where I don’ t need to think much about the distribution changing every 6 months.
- Next off, I plugged in the USB CD/DVD drive and installed the software, making sure I didn’t overwrite my XP partition. Well, you need a reminder every so often how awful life used to be.. 😉
- I won’t go into the installation process here – there’s plenty of documentation elsewhere which covers that. So, once installed, I really wanted to keep the installed software as trim as possible. That is, with one or two exceptions…
- Firstly, I have tried and tried it again but I just can’t/don’t/won’t do vi, vim or anything similar. It’s just not my bag. It’s emacs for me. I also want to keep my mail inside emacs, so it’s goodbye to mutt – even if it does suck less, apparently 😉
- Also, Exim4. The servers I manage don’t use it (generally it’s Postfix or QMail) and I already have a tiny smattering of Sendmail knowledge – so I have no desire to pick up on this. I’m sure it’s a fine MTA and undoubtedly there are many technical reasons why I should keep it on my netbook… but even so, no thanks.
Therefore, my software changes are:
$ sudo aptitude remove exim4 exim4-base exim4-config exim4-daemon-light vi mutt
$ sudo aptitude install emacs w3m-el sendmail
$ sudo aptitude install xserver-xorg-video-intel
You’re on to a winner here, because Debian Squeeze is already set up for Kernel Mode Setting. In other words, as soon as your system starts booting up, the video drivers get loaded and the optimal video mode is enabled (or, at least, that’s the intention).
Whether or not it’s worth specifying screenmode in grub is open for debate. FWIW, I put this in /etc/default/grub:
… And in /etc/grub.d/40_custom:
Then, I simply updated grub with the new config:
$ sudo update-grub
Please note that this step relates to my Intel-based netbook. Yours may vary.
$ sudo aptitude install wireless-tools iw wpasupplicant autofs nfs-common
** PLEASE NOTE: this step assumes your wireless network device doesn’t require firmware or that you already have the firmware installed in /lib/firmware. **
Once done, you need to uncomment the /net line in /etc/auto.master and restart autofs:
$ service restart autofs
If you want to refer to server by hostname and are not running a DNS server, add the hostname to /etc/hosts (somewhere below the localhost lines):
111.222.333.444 myserver.mydomain.com myserver
At this point, assuming all went well, you can cd to /net/
So, this takes care of a basic local network configuration, but we still need to actually get connected to it on wifi. So, there is, in my /etc/network/interfaces:
# The loopback network interface
iface lo inet loopback
# The primary network interface
iface eth0 inet dhcp
iface wlan_mynet inet dhcp
Once done, save this file and change the permissions for extra security:
$ sudo chmod 0600 /etc/network/interfaces
– and connect up, like this:
$ sudo ifup wlan0=wlan_mynet
Voila! With luck, maybe a little patience, and possibly an extra step or two (which you can hopefully figure out, if needed) these are the key set up steps which will make your netbook/laptop nice and lean, and perhaps more fun to play with.
Next time, I’ll go through a few tools I use for ‘net stuff.
There is one thing I want from Org-mode more than anything: the ability to record the time I spend on various activities – even unplanned ones – and then see a summary of this time at the end of the week.
Luckily, this is actually really simple. I won’t go through the details of how to install or set-up Org-mode; that information is easy to read through at its rightful place. Instead, it’s the key time-recording feature which I’ll briefly touch on here.
How to start:
- Open up Emacs (not got Emacs? See the GNU web site or download it straight from the GNU FTP site)
- Start Org-mode by opening a .org file:
C-x C-f ~/org/work.org
- Start the clock on any item:
C-c C-x C-i
- Leave it running for a minute or two and then stop the clock:
C-c C-x C-o
- Now go into Agenda view:
C-c a a
- When in Agenda view (commonly this opens in a second frame), just hit R:
Et voila! You should be able to see a summary of the time you have booked on your activities.
Hot off the press is v1.4.5 of Mark Hershberger’s weblogger, an extension to GNU Emacs / XEmacs which allows blogging from within the Emacs editor environment.
Early indications are good – for me at least. I have found the process of setting up and using weblogger a bit tricky, at times, so it’s encouraging to see that I can at least add this blog entry fairly easily.
Now, which is that “publish blog” keystroke…? 😉
It’s been a very busy start to 2010 but I have finally managed to get myself into gear with use of Emacs. I’m using it in console-only guise as far as I can, simply to learn the keystrokes as quickly as possible.
One feature that I’ve been very happy to stumble across is this weblogger.el extension. It means you can simply open a new buffer in Emacs, blog and save – all in minutes, if not seconds! Much better than opening a web page every time you want to blog about something.
The inspiration to really use Emacs in earnest comes from my new hero(in): Sacha Chua. A hugely popular and influential personality, Sacha is a true geek (in the best possible sense, of course) and a rising star for 2010 and beyond. I highly recommend reading Sacha’s blog at sachachua.com.