Take bavarian tasting platter at Bavarian Bier Cafe Parramatta
- Location at google map
- "platter" means different kinds of foods in one big platter
- sausage is good
As my friend said,this avocado sauce is better:
How to manage emacs packages
I have 168 packages installed through Emacs package manager. And I shared my emacs.d at github.
So these days I have been spending much time on solve the issues for people who use my .emacs.d.
The root cause of most issues is the packages downloaded from melpa are not stable enough.
That's understandable because packages hosted at melpa are built automatically from developers' git repositories.
Now here is my solution:
- I use more stable packages from other repositories if possible.
- I use whitelist to explicitly list the packages I want to install from melpa.
White list because although packages on non-melpa are more stable, there are still some exceptions.
For example, the package "erlang" exists both in melpa and marmalade. But only the version at melpa is usable.
Now I need show you the code. See my init-elpa.el at github for configuration. Especially the code related to variable "melpa-include-package".
Use `git send-email' at ubuntu
When I try to use `git send-email' at ubuntu 13.04, I get error message some perl modules are missing.
So here is one line command to install all missing perl modules:
sudo cpan Error Net:SMTP:SSL MIME::Base64 Authen::SASL
One liner bash to create/update playlist for mpd
I put all my audio files in ~/Music.
The below script create a playlist in m3u format and ask mpd to load it:
cd ~/Music;find . -name '.mp3' -o -name '.flac'|sed -e 's%^./%%g' > all.m3u;mpd ~/.mpd/config;mpc clear;mpc load all.m3u;mpc update
Here is content of my ~/.mpd/config which is basically only a copy from official sample configuration:
# See the mpd.conf man page for a more detailed description of each parameter. music_directory "~/Music" playlist_directory "~/.mpd/playlists" db_file "~/.mpd/mpd.db" log_file "~/.mpd/mpd.log" pid_file "~/.mpd/mpd.pid" state_file "~/.mpd/mpdstate"
How to install Emacs source code under Ubuntu
Only one command:
sudo apt-get install emacs24-el
How I locate that package emacs24-el:
sudo apt-get install apt-file;sudo apt-file update; apt-file search help.el.gz
BTW, I assign hot key
C-h C-f to command
find-function which "Find the definition of the FUNCTION near point".