Coder Social home page Coder Social logo

guess-style's People

Contributors

mhavard999 avatar nschum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

guess-style's Issues

Location of guess-style

I am not sure if the following is an issue with emacs-24.4.1 or guess-style. But dropping guess-style/ inside .emacs.d raises the following error upon opening a python file. I moved it out else where to solve the problem.

Could not guess variable 'indent-tabs-mode' (Cannot open load file: is a directory, /home/XXX/.emacs.\
d/guess-style)
Could not guess variable 'tab-width' (Not enough lines to guess variable)
Could not guess variable 'c-basic-offset' (Not a cc-mode)
Could not guess variable 'nxml-child-indent' (Not certain enough to guess variable)
Could not guess variable 'css-indent-offset' (Not certain enough to guess variable)
Could not guess variable 'python-indent-offset' (Not certain enough to guess variable)

My .emacs file looks as below:

(add-to-list 'load-path (expand-file-name "~/.emacs.d/guess-style"))
(require 'guess-style)
(autoload 'guess-style-set-variable "guess-style" nil t)
(autoload 'guess-style-guess-variable "guess-style")
(autoload 'guess-style-guess-all "guess-style" nil t)
(add-hook 'python-mode-hook 'guess-style-guess-all)

Feel free to ignore/close the issue if you deem it's irrelevant.

Conflict with Python

Running Emacs 24.3 with the following setup

(autoload 'guess-style-set-variable "guess-style" nil t)
(autoload 'guess-style-guess-variable "guess-style")
(autoload 'guess-style-guess-all "guess-style" nil t)
(setq guess-style-info-mode 1)
(add-hook 'prog-mode-hook 'guess-style-guess-all)

yields the following error message when loading python-mode:

File mode specification error: (error "Don't know how to make a localized variable an alias")

and python-mode will not load, which is fairly annoying.

Replacing the deprecated python-indent by python-indent-offset in guess-style-guesser-alist did the trick for me.

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.