Giter Site home page Giter Site logo

caiorss / emacs-elisp-programming Goto Github PK

View Code? Open in Web Editor NEW
658.0 46.0 87.0 12.39 MB

Tutorial about programming Elisp and Emacs text editor customization.

Home Page: http://caiorss.github.io/Emacs-Elisp-Programming

License: The Unlicense

Makefile 4.21% Shell 21.80% CSS 53.95% Emacs Lisp 8.01% F# 1.77% Haskell 0.87% Scala 4.13% Batchfile 4.30% C++ 0.96%
emacs elisp tutorial programming customization example lisp dev utils

emacs-elisp-programming's Issues

Good work

Good work :)
But, no updates?

I tried to convert Elisp_Programming.org to pdf,
But could not succeed :(

(position) not defined

Does (position) need to be defined by some library?

ELISP> (position 2 '(5 6 7 8))
*** Eval error ***  Symbol's function definition is void: position

I'm using emacs version 24.4.90.1

Alist example not quite right

Hi,

Yr function plist->alist creates a list of lists rather than a list of cons cells. Should be something like:

(defun plist->alist (plist)
  (if (null plist)
      '()
      (cons
       (cons (car plist) (cadr plist))
      (plist->alist (cddr plist)))))

---Fran

key missing?

in section
Key Bindings by Task
2-Buffers
C-x Move to next buffer
C-x Move to previous buffer

after C-x missing key LEFT/RIGHT ?

How to edit and return string in Emacs Lisp?


(defun buffer-out ()
  (interactive)
  (let ((buffer (current-buffer))
	(value (buffer-string)))
    (kill-buffer buffer)))

(defun buffer-string-out ()
  (interactive)
  (buffer-string))

(defun edit-string (string)
  (interactive)
  (let ((buffer "*edit-string*"))
    (get-buffer-create buffer)
    (switch-to-buffer buffer)
    (set-buffer buffer)
    (let ((inhibit-read-only nil))
      (insert string)
      (fundamental-mode)
      (local-set-key (kbd "C-c C-c") 'buffer-out))))

;;      (add-hook 'kill-buffer-hook 'buffer-string-out))))

(setq ok (edit-string "OK"))

I am trying to get this work, could you point me to a solution to edit string, and return the string back?

Example of "1.6.6 Functions with Property List argument" need to be corrected

(defun make-shell-interface (&rest params)
 
 ;;<snip>
  (let
       ((name   (plist-get params :name ))
        (type   (plist-get params :type))
        (path   (plist-get params :path))
        (buffer (plist-get params :buffer)))
    (list
     (cons 'name buffer) ;; <== should be (cons 'name name)
     (cons 'type type)
     (cons 'path path)
     (cons 'buffer buffer))))

Change the following line from

(cons 'name buffer)

to

(cons 'name name)

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.