Update: I have implemented a better version of this code. The new version is able to display progress separately and auto hide the rsync window after finishing copying. You can look at this post Emacs - Async File copying with Rsync - Update

Emacs Dired mode is a great alternative for the default file explorer application on MacOS, Windows or other systems. That is because Dired mode provides with the ability to quickly navigate through files and directories, mark multiple files for later operation using keyboard. However, when dealing with large and multiple files, it show one annoying drawback. When we want to copy or move a big file, Emacs will be entirely blocked until the copying/renaming process complete.

Read more

Introduction

Emacs is an extremely extensibile and customizable text editor. We can customize nearly every aspect of it. Color theming, of course, is not an exception in Emacs. A good color theming can make us feel more pleasant and literally improves our work.

Since version 24, Emacs offers a powerful tool to create and maintain custom theme called customize-create-theme. It provides you an visual interface for interacting with all those facets as well as previewing color in Emacs. You can even copy from other theme and then customize it a bit to make it yours. Here is some tips on how to create a custom theme with Emacs 24.

Read more

Since Disqus is made for static site comment system, each Disqus thread is identified by the current page URL. This leads to a problem that Disqus does not understand that http://my-site/link/to/post and http://my-site/link/to/post/?fbxxx refer to the same article. The second link is caused by facebook sharing system. It automatically add the trailing to the links that shared on facebook. As a result, those 2 links are considered as 2 separate threads and will not display probably.

The solution for this is to normalize the URL of the site to make them all follow one convention. Because Jekyll sites are static websites, we need a language that can run on client. This can be solved by using javascript.

Read more

Introduction

ECB, stands for Emacs Code Browser, tranforms your emacs from a text editor to a real IDE for coding. Once activated, it can display many useful information that help you program more effectively. The ECB’s informational windows can contain:

  • a directory tree,
  • a list of source files in the current directory,
  • a list of functions/classes/methods/… in the current file, (ECB uses the Semantic Bovinator, or Imenu, or etags, for getting this list so all languages supported by any of these tools are automatically supported by ECB too)
  • a history of recently visited files,
  • the Speedbar and
  • output from compilation (the “compilation” window) and other modes like help, grep, etc. or whatever the user defines to be displayed in that window.

For more information, please visit ECB Homepage.

Read more

Introduction

This article is to help you config Emacs to use Clang autocomplete source for C/C++ and even Objective C programming.

If you haven’t known what is Clang yet, have a look at this article Clang on Wikipedia

Requirements & Installation

First, you have to install AutoComplete for Emacs. You can install it using Emacs Package Manager. The next step is to install Yasnippet. This is not compulsory but is encouraged for better experiments. You can also install it using Emacs Package Manager. To see how to get Autocomplete and Yasnippet to work together, see this article Config Yasnippet and Autocomplete on Emacs.

Read more

Intro

It’s a great idea to encrypt your identity such as username and password for the services that you use. Since version 23, Emacs has been integrated with a package called EasyPG to help us with those task. It’s an interface to GnuPG so make sure that you have GnuPG installed on your computer. If you’re on MacOS, you can easily install it from Macports by executing the command sudo port install gnupg.

Usage

First, make sure that you have GnuPG installed on your computer by typing which gpg in terminal. On MacOS, you can install it from Macports. After finishing installing gnupg, add this to your .emacs

(when (file-executable-p "/opt/local/bin/macports/bin/gpg")
	(setq epg-gpg-program "/opt/local/bin/macports/bin/gpg"))
Read more

I’m a technology fanboy, or in other word, a geek. I’m really interested in computers, smartphones, high tech devices,… I have used Windows, MacOS, Ubuntu, iOS, Android, Blackberry, Symbian,… I want to keep them all in sync so that I can easily manage and access my data on any devices. Here are some of my currently used and known solutions for keeping them in sync.

Read more

I was given a Samsung Galaxy Note 1 - LTE Korea version. Sadly, in my country, 4G has not appeared yet. So I can only use 3G to access internet on the go. However, since it’s the LTE version, it constantly looks for 4G network, which drains my battery so quickly. It’s so annoying that I have to recharge the battery every 6-7 hours.

All the tutorials on the internet that I found didn’t help me. They all told me to go to Setting -> More -> Mobile Networks -> Pref and select the prefered network type. However, there is no option called pref or something like that there.

Read more