emacs on Redhat Enterprise Linux 6.4

Setting up emacs on Redhat Enterprise Linux 6.4

SHORT STORY:

Put your *.el files into:

/usr/share/emacs/site-lisp/site-start.d/

...and configure them in a file named ".emacs" in your home directory.

LONG STORY:

Typically you'll want to install emacs however you do it now.  If you haven't installed anything yet and don't yet have emacs, you can install it like I did like this:

___________________________________________________________
# cat /etc/issue

Red Hat Enterprise Linux Server release 6.4 (Santiago)
Kernel \r on an \m

# uname -a

Linux localhost 2.6.32-358.23.2.el6.x86_64 #1 SMP Sat Sep 14 05:32:37 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux

# yum list |grep emacs

# yum install emacs.x86_64
___________________________________________________________

...after you start it and stop it, you won't find a file named ".emacs", or anything in your home directory (I did not).  If you want to put your lisp files, like *.el, in a place where they will be read, you can put them in here:

/usr/share/emacs/site-lisp/site-start.d/

For example, you can put auto-capitalize.el, found here: www.emacswiki.org/emacs/auto-capitalize.el, into /usr/share/emacs/site-lisp/site-start.d/auto-capitalize.el.  You can read that file, auto-capitalize.el, to learn how to set it up.  I set mine up for "unconditional" capitalizing, by creating a new file in my home directory, named ".emacs", in /home/username/.emacs, and adding this line to it:

(add-hook 'text-mode-hook 'turn-on-auto-capitalize-mode)

There are smarter ways to set it up which you can read about in auto-capitalize.el

$ yum list

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

$ yum install emacs.x86_64

Loaded plugins: product-id, rhnplugin, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package emacs.x86_64 1:23.1-25.el6 will be installed
--> Processing Dependency: emacs-common = 1:23.1-25.el6 for package: 1:emacs-23.1-25.el6.x86_64
--> Processing Dependency: m17n-db-datafiles for package: 1:emacs-23.1-25.el6.x86_64
--> Processing Dependency: librsvg2 for package: 1:emacs-23.1-25.el6.x86_64
--> Processing Dependency: libm17n-flt.so.0()(64bit) for package: 1:emacs-23.1-25.el6.x86_64
--> Processing Dependency: libotf.so.0()(64bit) for package: 1:emacs-23.1-25.el6.x86_64
--> Processing Dependency: libgif.so.4()(64bit) for package: 1:emacs-23.1-25.el6.x86_64
--> Processing Dependency: libm17n-core.so.0()(64bit) for package: 1:emacs-23.1-25.el6.x86_64
--> Processing Dependency: libXpm.so.4()(64bit) for package: 1:emacs-23.1-25.el6.x86_64
--> Processing Dependency: librsvg-2.so.2()(64bit) for package: 1:emacs-23.1-25.el6.x86_64
--> Running transaction check
---> Package emacs-common.x86_64 1:23.1-25.el6 will be installed
---> Package giflib.x86_64 0:4.1.6-3.1.el6 will be installed
---> Package libXpm.x86_64 0:3.5.10-2.el6 will be installed
---> Package libotf.x86_64 0:0.9.9-3.1.el6 will be installed
--> Processing Dependency: libXaw.so.7()(64bit) for package: libotf-0.9.9-3.1.el6.x86_64
---> Package librsvg2.x86_64 0:2.26.0-6.el6_5.3 will be installed
--> Processing Dependency: libgsf >= 1.6.0 for package: librsvg2-2.26.0-6.el6_5.3.x86_64
--> Processing Dependency: libgsf-1.so.114()(64bit) for package: librsvg2-2.26.0-6.el6_5.3.x86_64
--> Processing Dependency: libcroco-0.6.so.3()(64bit) for package: librsvg2-2.26.0-6.el6_5.3.x86_64
---> Package m17n-db-datafiles.noarch 0:1.5.5-1.1.el6 will be installed
--> Processing Dependency: m17n-db = 1.5.5-1.1.el6 for package: m17n-db-datafiles-1.5.5-1.1.el6.noarch
---> Package m17n-lib.x86_64 0:1.5.5-2.el6_1.1 will be installed
--> Running transaction check
---> Package libXaw.x86_64 0:1.0.11-2.el6 will be installed
---> Package libcroco.x86_64 0:0.6.2-5.el6 will be installed
---> Package libgsf.x86_64 0:1.14.15-5.el6 will be installed
--> Processing Dependency: GConf2 for package: libgsf-1.14.15-5.el6.x86_64
--> Processing Dependency: GConf2 for package: libgsf-1.14.15-5.el6.x86_64
--> Processing Dependency: GConf2 for package: libgsf-1.14.15-5.el6.x86_64
---> Package m17n-db.noarch 0:1.5.5-1.1.el6 will be installed
--> Running transaction check
---> Package GConf2.x86_64 0:2.28.0-6.el6 will be installed
--> Processing Dependency: sgml-common for package: GConf2-2.28.0-6.el6.x86_64
--> Processing Dependency: libORBit-2.so.0()(64bit) for package: GConf2-2.28.0-6.el6.x86_64
--> Running transaction check
---> Package ORBit2.x86_64 0:2.14.17-3.2.el6_3 will be installed
--> Processing Dependency: libIDL-2.so.0()(64bit) for package: ORBit2-2.14.17-3.2.el6_3.x86_64
---> Package sgml-common.noarch 0:0.6.3-32.el6 will be installed
--> Running transaction check
---> Package libIDL.x86_64 0:0.8.13-2.1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package             Arch     Version              Repository              Size
================================================================================
Installing:
 emacs               x86_64   1:23.1-25.el6        rhel-x86_64-server-6   2.2 M
Installing for dependencies:
 GConf2              x86_64   2.28.0-6.el6         rhel-x86_64-server-6   963 k
 ORBit2              x86_64   2.14.17-3.2.el6_3    rhel-x86_64-server-6   168 k
 emacs-common        x86_64   1:23.1-25.el6        rhel-x86_64-server-6    18 M
 giflib              x86_64   4.1.6-3.1.el6        rhel-x86_64-server-6    37 k
 libIDL              x86_64   0.8.13-2.1.el6       rhel-x86_64-server-6    83 k
 libXaw              x86_64   1.0.11-2.el6         rhel-x86_64-server-6   178 k
 libXpm              x86_64   3.5.10-2.el6         rhel-x86_64-server-6    51 k
 libcroco            x86_64   0.6.2-5.el6          rhel-x86_64-server-6   100 k
 libgsf              x86_64   1.14.15-5.el6        rhel-x86_64-server-6   116 k
 libotf              x86_64   0.9.9-3.1.el6        rhel-x86_64-server-6    80 k
 librsvg2            x86_64   2.26.0-6.el6_5.3     rhel-x86_64-server-6   140 k
 m17n-db             noarch   1.5.5-1.1.el6        rhel-x86_64-server-6    41 k
 m17n-db-datafiles   noarch   1.5.5-1.1.el6        rhel-x86_64-server-6   717 k
 m17n-lib            x86_64   1.5.5-2.el6_1.1      rhel-x86_64-server-6   157 k
 sgml-common         noarch   0.6.3-32.el6         rhel-x86_64-server-6    43 k

Transaction Summary
================================================================================
Install      16 Package(s)

Total download size: 23 M
Installed size: 0 
Is this ok [y/N]: y
Downloading Packages:
(1/16): GConf2-2.28.0-6.el6.x86_64.rpm                   | 963 kB     00:00    
(2/16): ORBit2-2.14.17-3.2.el6_3.x86_64.rpm              | 168 kB     00:00    
(3/16): emacs-23.1-25.el6.x86_64.rpm                     | 2.2 MB     00:00    
(4/16): emacs-common-23.1-25.el6.x86_64.rpm              |  18 MB     00:00    
(5/16): giflib-4.1.6-3.1.el6.x86_64.rpm                  |  37 kB     00:00    
(6/16): libIDL-0.8.13-2.1.el6.x86_64.rpm                 |  83 kB     00:00    
(7/16): libXaw-1.0.11-2.el6.x86_64.rpm                   | 178 kB     00:00    
(8/16): libXpm-3.5.10-2.el6.x86_64.rpm                   |  51 kB     00:00    
(9/16): libcroco-0.6.2-5.el6.x86_64.rpm                  | 100 kB     00:00    
(10/16): libgsf-1.14.15-5.el6.x86_64.rpm                 | 116 kB     00:00    
(11/16): libotf-0.9.9-3.1.el6.x86_64.rpm                 |  80 kB     00:00    
(12/16): librsvg2-2.26.0-6.el6_5.3.x86_64.rpm            | 140 kB     00:00    
(13/16): m17n-db-1.5.5-1.1.el6.noarch.rpm                |  41 kB     00:00    
(14/16): m17n-db-datafiles-1.5.5-1.1.el6.noarch.rpm      | 717 kB     00:00    
(15/16): m17n-lib-1.5.5-2.el6_1.1.x86_64.rpm             | 157 kB     00:00    
(16/16): sgml-common-0.6.3-32.el6.noarch.rpm             |  43 kB     00:00    
--------------------------------------------------------------------------------
Total                                           6.6 MB/s |  23 MB     00:03    
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : libXpm-3.5.10-2.el6.x86_64                                  1/16
  Installing : m17n-db-1.5.5-1.1.el6.noarch                                2/16
  Installing : m17n-db-datafiles-1.5.5-1.1.el6.noarch                      3/16
  Installing : m17n-lib-1.5.5-2.el6_1.1.x86_64                             4/16
  Installing : libXaw-1.0.11-2.el6.x86_64                                  5/16
  Installing : libotf-0.9.9-3.1.el6.x86_64                                 6/16
  Installing : giflib-4.1.6-3.1.el6.x86_64                                 7/16
  Installing : 1:emacs-common-23.1-25.el6.x86_64                           8/16
  Installing : libIDL-0.8.13-2.1.el6.x86_64                                9/16
  Installing : ORBit2-2.14.17-3.2.el6_3.x86_64                            10/16
  Installing : sgml-common-0.6.3-32.el6.noarch                            11/16
  Installing : GConf2-2.28.0-6.el6.x86_64                                 12/16
  Installing : libgsf-1.14.15-5.el6.x86_64                                13/16
  Installing : libcroco-0.6.2-5.el6.x86_64                                14/16
  Installing : librsvg2-2.26.0-6.el6_5.3.x86_64                           15/16
  Installing : 1:emacs-23.1-25.el6.x86_64                                 16/16
  Verifying  : m17n-db-datafiles-1.5.5-1.1.el6.noarch                      1/16
  Verifying  : libotf-0.9.9-3.1.el6.x86_64                                 2/16
  Verifying  : ORBit2-2.14.17-3.2.el6_3.x86_64                             3/16
  Verifying  : m17n-db-1.5.5-1.1.el6.noarch                                4/16
  Verifying  : libcroco-0.6.2-5.el6.x86_64                                 5/16
  Verifying  : libXpm-3.5.10-2.el6.x86_64                                  6/16
  Verifying  : sgml-common-0.6.3-32.el6.noarch                             7/16
  Verifying  : m17n-lib-1.5.5-2.el6_1.1.x86_64                             8/16
  Verifying  : libgsf-1.14.15-5.el6.x86_64                                 9/16
  Verifying  : libIDL-0.8.13-2.1.el6.x86_64                               10/16
  Verifying  : 1:emacs-23.1-25.el6.x86_64                                 11/16
  Verifying  : 1:emacs-common-23.1-25.el6.x86_64                          12/16
  Verifying  : GConf2-2.28.0-6.el6.x86_64                                 13/16
  Verifying  : giflib-4.1.6-3.1.el6.x86_64                                14/16
  Verifying  : libXaw-1.0.11-2.el6.x86_64                                 15/16
  Verifying  : librsvg2-2.26.0-6.el6_5.3.x86_64                           16/16

Installed:
  emacs.x86_64 1:23.1-25.el6                                                   

Dependency Installed:
  GConf2.x86_64 0:2.28.0-6.el6               ORBit2.x86_64 0:2.14.17-3.2.el6_3 
  emacs-common.x86_64 1:23.1-25.el6          giflib.x86_64 0:4.1.6-3.1.el6     
  libIDL.x86_64 0:0.8.13-2.1.el6             libXaw.x86_64 0:1.0.11-2.el6      
  libXpm.x86_64 0:3.5.10-2.el6               libcroco.x86_64 0:0.6.2-5.el6     
  libgsf.x86_64 0:1.14.15-5.el6              libotf.x86_64 0:0.9.9-3.1.el6     
  librsvg2.x86_64 0:2.26.0-6.el6_5.3         m17n-db.noarch 0:1.5.5-1.1.el6    
  m17n-db-datafiles.noarch 0:1.5.5-1.1.el6   m17n-lib.x86_64 0:1.5.5-2.el6_1.1 
  sgml-common.noarch 0:0.6.3-32.el6        

Complete!


Comments