Posts

Showing posts from August 2, 2009

Emacs 23 Features

Image
perm url with updates: http://xahlee.org/emacs/emacs23_features.htmlThe following version lacks images.New Features in Emacs 23Xah Lee, 2009-07This page is a list of major new features in emacs 23, released in 2009-07-30. It also includes practical tips about using the new feature. This page only list the most important or practical changes. It may miss features or changes you find important.Editing Texttransient-mark-modeText selection is highlighted by default.The command fill-paragraph (“Alt+q”) now automatically applies to the whole text selection if there is one.Also, now you can hold down the Shift key then press arrows key to select text.However, by default, pressing delete key will not delete the selected text. If you want this, put the following in your emacs init file: (delete-selection-mode 1) ; make typing override text selection visual-line-modePress down arrow key moves the cursor by a screen line. In emacs 22, pressing down arrow moves the cursor by newline as determin…

Difference between Emacs's “(setenv PATH ...)” and “(setq exec-path ...)”

perm url with update: http://xahlee.org/emacs/emacs_env_var_paths.htmlDifference between Emacs's “(setenv PATH ...)” and “(setq exec-path ...)”Xah Lee, 2009-08-04This page explains the mechanisms of setting environment variables in emacs, especially if you have problems in Windows emacs of getting aspell or other unix utils to run.Spent some time to study the diff between (setenv "PATH" ...) vs (setq exec-path ...).Their docs are here:(info "(elisp)System Environment")(info "(elisp)Subprocess Creation")In summary:“setenv” is for setting OS env vars within emacs environment. (That is, it doesn't change the OS's env var, it just changes the env var as seen within emacs.)Unixes and Windows both have env vars. Env vars are global info available to processes (apps). A process is free to use the info in env var. Some env var are important as they contain system info such as Windows WINDIR that contains OS path, and PATH in both Windows and unixes t…

tidbits: HIV world map, USA China

Collection of tools for: How To Create Your Own Keybinding In Microsoft Windows (computing)HIV World MapFrom Wikipedia: Group of TwoSino-American or U.S.-China relations refers to international relations between the United States of America and the People's Republic of China (PRC). Most analysts have characterized present Sino-American relations as complex and multi-faceted, with the United States and the People's Republic of China being neither allies nor enemies. Generally, the American government and military establishment do not regard the Chinese as an adversary, but as a competitor in some areas and a partner in others. At the same time, it is acknowledged that the nature of Sino-American relations will be a major factor in determining the fate of the world in the 21st century.The U.S. has the world's largest economy. China's economy is the third largest and will soon overtake Japan's to become the second largest. The two countries are the two largest consume…