Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ How to modify the Emacs Major Mode Shortcuts     - Ubuntu 14.04, 13.10 install OpenCV 2.4.9 (Linux)

- xCAT line installation on CentOS 6.X (Linux)

- Oracle PL / SQL based cursor (Database)

- 10 easy to use Linux utilities Recommended (Linux)

- Gitblit adopted Ticket collaborative development model (Linux)

- WEB-based Android Remote Tools Python implementation (Programming)

- Java memory area Explanation (Programming)

- RPM package management tools under Linux (Linux)

- Distributed Firewall Design on Linux platform (Linux)

- Linux loopback adapter Driven Design (Programming)

- shell-like program (Programming)

- MySQL5.6.17 compiler installation under CentOS (Database)

- Defensive programming in PHP (Programming)

- How to modify the Ubuntu terminal user name changed to red color (Linux)

- Installation Elementary OS Freya 20 things to do (Linux)

- How do you access Dropbox Linux command line (Linux)

- Oracle PLS-00231 error analysis (Database)

- Recycle Bin function realization in Linux (Linux)

- CentOS 7 repair MBR and GRUB (Linux)

- Java memory area and memory overflow exception (Programming)

 
         
  How to modify the Emacs Major Mode Shortcuts
     
  Add Date : 2017-08-26      
         
         
         
  We know Emacs to modify the format of the global shortcuts is as follows:

(Global-set-key KEY COMMAND)

As the M-j bound to find-file function is as follows:

(Global-set-key (kbd "M-j") 'find-file)

So, how to modify the keyboard shortcuts specific Major Mode under it?

The basic format is as follows:

(Global-set-key KEYMAP KEY COMMAND)

KEYMAP here more than a name, that is, each has a Major Mode KEYMAP name.

Here to php-mode, for example, if I want to php-mode in the Major Mode The M-j bound to find-file function,

Its approach is as follows:

(Require 'php-mode)

(Define-key php-mode-map (kbd "M-j") 'find-file)

Note: This was first formulated in the php-mode, while finding the appropriate name from KEYMAP php-mode.el file
     
         
         
         
  More:      
 
- OpenGL Superb Learning Notes - Depth Texture and Shadows (Programming)
- How to track performance issues when using the Unity Game Development Android (Programming)
- 5 fast Node.js application performance tips (Programming)
- To use Linux to create a secure managed gateway (Linux)
- The multiplexed signal driving IO (Programming)
- CentOS7 install MySQL 5.5 (Database)
- Configure the ASM process on Red Hat Linux 6.5 (Database)
- MySQL log from the library than the main library (Database)
- Forwarding module with Apache reverse proxy server (Server)
- Linux system on how to use rsync to synchronize data (Server)
- Ubuntu 12.04 64-bit installation Redmine + Git + ReviewBoard (Linux)
- C ++ sequence containers basics summary (Programming)
- Installation and Configuration Munin monitoring server on Linux (Server)
- To compile and install MySQL 5.7.7 RC under CentOS 7.1 (Database)
- The traffic monitoring system: cacti (Linux)
- Ubuntu 14.04 VirtualBox can not start solution (Linux)
- JavaScript: understanding regular expressions (Programming)
- Snort build a secure Linux server (Linux)
- 30 Practical Linux system administrators will learn the command (Linux)
- XenServer virtual machines installed in dual-card configuration (Server)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.