Code Monkey home page Code Monkey logo

Comments (5)

vspinu avatar vspinu commented on June 17, 2024

It is registered in ess-site.el. The standard way to load ess is with
(load 'ess-site.el'). If you play with autoloads yourself then you
obviously have to register it yourself, because ess-site.el is not
loaded.

Is this MELPA install that you are talking about? If so, then
auto-mode-alist could be populated in ess-autoloads.el file. Improving
package autoloads has been on my todo list for quite a while already.

Andrew Pennebaker [email protected]
on Wed, 29 May 2013 17:38:26 -0700 wrote:

Currently, you have to insert the following into .emacs in order for .R files to open in R-mode:
(autoload 'R-mode "ess-site.el" "" t)
(add-to-list 'auto-mode-alist '(".R'" . R-mode))

Could we please register .R file extensions with R-mode as part of ess installation?


Reply to this email directly or view it on GitHub:
#42

from ess.

mcandre avatar mcandre commented on June 17, 2024

The standard way to load ess is with (load 'ess-site.el').

Yes, (load "ess-site.el") would do the trick. However, I've got quite a lot of loads in my .emacs, and they slow down Emacs. I try my best to delay them when possible. For example, I installed go-mode for editing Go code, and it doesn't require (load "go"), nor does it require inserting autoloads into my .emacs.

Is this MELPA install that you are talking about?

Yes. By the way, MELPA lists no description for ess.

Improving package autoloads has been on my todo list for quite a while already.

Glad to hear it! I'm trying to get in touch with a number of package authors, as I use a lot of languages, and my .emacs is filling up with manual autoload insertions that should be done by the packages themselves.

from ess.

davidshepherd7 avatar davidshepherd7 commented on June 17, 2024

Any plans to fix this?

If not maybe you could add something to the README to describe what users need to do in order to start using R-mode:

Setup for package.el users
===============

To automatically enable `R-mode` in `.R` files add the following to your init.el file:

    (autoload 'R-mode "ess-site.el" "" t)
    (add-to-list 'auto-mode-alist '("\\.R\\'" . R-mode))

Otherwise people (like me) will assume that it should "just work" and be confused when it doesn't.

from ess.

vspinu avatar vspinu commented on June 17, 2024

Any plans to fix this?

Yes. I hope to fix this by the next release. Haven't had much time so far.

from ess.

davidshepherd7 avatar davidshepherd7 commented on June 17, 2024

Great :)

from ess.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.