Posts

Showing posts from May, 2013

fs-mode for emacs (Linux filesystem management in emacs)

fs-mode for emacs fs-mode for emacs Table of Contents 1 What is fs-mode? 2 How to install it? 3 How to use it? 4 Use root-cmd.el to execute commands which needs root privilege. 1 What is fs-mode? fs-mode is an Linux file system management mode in emacs. It can manage your file system, you can mount or umount file system. It also support mount ecryptfs file system.( I put my little secret into ecryptfs file systems. ) 2 How to install it? I upload the source code to github, download it from following link. https://github.com/suzp1984/fs-mode add following code into emacs's init file. ;; change the directory according to your needs (add-to-list 'load-path "directory/to/install/" ) ( require ' fs-mode-autoload ) 3 How to use it? Use M-x list-fs to enter the fs-mode. and there are following key shortcuts bindings. m - mount a file system. u - umount a file system. q - quit the fs-mode. 4 Use root-c

Configure emacs's auto-insert module

Configure emacs's auto-insert module Configure emacs's auto-insert module Table of Contents 1 how to use auto-insert? 2 Configure auto-insert-alist 1 how to use auto-insert? auto-insert mode is very useful, which can be used to declare the license in the header of the source code and some personal information, for example, who create this file and when? auto-insert will insert declaration according the variable named auto-insert-alist. It first search this variable and find the item match the file type, then extract the action to finish the auto insert. If you build an new elisp file buffer, and execute auto-insert command, it will insert the fantastic declaration with GPL license. But this command performs sucks in other mode like c-mode or python-mode. So you must configure variable auto-insert-alist by your self. 2 Configure auto-insert-alist I upload the source code into github, download according following a